дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
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]>
Цей коміт міститься в:
1 джерело
8fabf054ef
коміт
98c8c55b9e
4 files changed
+64
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Заблокувати користувача