fix(project-tree): scroll horizontally when rows are wider than the pane (#495)

Project view rows were locked to the pane width, so deeply nested files and long names were clipped with no way to read the rest. Rows now size to their content and the view scrolls horizontally.

Rows are virtualised, so the scroll range keeps the widest row until the rows change. Otherwise scrolling past a wide row would remove the scrollbar and reset the horizontal position. Other trees opt out and keep clipping long labels.

Co-authored-by: a-rookie-of-C-language <[email protected]>
Цей коміт міститься в:
arookieofcтаa-rookie-of-C-language authored and GitHub committed 2026-10-31 01:55:33 +08:00
1 джерело 8fabf054ef
коміт 98c8c55b9e
4 files changed
+64

No files matched your search

+12
Переглянути файл
@@ -53,6 +53,18 @@
color: var(--fg-strong);
white-space: nowrap;
}
/* At least the visible width so the selection covers it; wider rows overflow the sizer. */
.wideRow {
width: max-content;
min-width: 100%;
}
.contentWidth {
position: absolute;
top: 0;
left: 0;
height: 1px;
pointer-events: none;
}
.row:hover {
background: var(--bg-tree-hover, color-mix(in srgb, var(--fg-strong) 4%, transparent));
}