From eaae69bcad4807e174abf02586ea06a42c3d238c Mon Sep 17 00:00:00 2001 From: LegGasai Date: Fri, 6 Nov 2026 17:32:03 +0800 Subject: [PATCH] fix(panel): hide the working folder's parent when too little of it fits --- .../ui-session-panel/src/client/ProjectRow.module.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/client/ui-session-panel/src/client/ProjectRow.module.css b/packages/client/ui-session-panel/src/client/ProjectRow.module.css index fce60b0571..d0d430e14d 100644 --- a/packages/client/ui-session-panel/src/client/ProjectRow.module.css +++ b/packages/client/ui-session-panel/src/client/ProjectRow.module.css @@ -1,10 +1,14 @@ /* [name] ยท [parent]: the name keeps its width up to the row, and the parent - takes the remaining space and clips with an ellipsis. */ + fills the rest of the line and clips with an ellipsis. With less than 5em + left for it, the parent wraps onto a second line, which the one-line height + hides, so the row never shows a separator without a parent. */ .folder { display: flex; + flex-wrap: wrap; align-items: baseline; min-width: 0; + height: 1lh; overflow: hidden; white-space: nowrap; } @@ -17,13 +21,14 @@ .name { flex: 0 1 auto; min-width: 0; + max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .parent { - flex: 0 1000 auto; - min-width: 0; + flex: 1 1 0; + min-width: 5em; overflow: hidden; color: var(--dsw-alias-label-tertiary); text-overflow: ellipsis;