fix(ui): truncate right panel paths from start

Use RTL ellipsis with bidi isolation so long paths keep the filename visible.
This commit is contained in:
Shantur Rathore
2026-02-11 11:27:24 +00:00
parent 204b2e020b
commit fd499d95e6
4 changed files with 23 additions and 11 deletions

View File

@@ -164,9 +164,15 @@
@apply text-xs font-mono min-w-0 flex-1 overflow-hidden whitespace-nowrap;
color: var(--text-primary);
text-overflow: ellipsis;
/* Truncate from the start; keep filename visible. */
direction: rtl;
text-align: left;
unicode-bidi: plaintext;
unicode-bidi: isolate;
}
.files-tab-selected-path .file-path-text {
direction: ltr;
unicode-bidi: isolate;
}
.files-tab-stat {
@@ -240,9 +246,15 @@
@apply text-xs font-mono min-w-0 flex-1 overflow-hidden whitespace-nowrap;
color: var(--text-primary);
text-overflow: ellipsis;
/* Truncate from the start; keep filename visible. */
direction: rtl;
text-align: left;
unicode-bidi: plaintext;
unicode-bidi: isolate;
}
.file-list-item-path .file-path-text {
direction: ltr;
unicode-bidi: isolate;
}
.file-list-item-stats {