дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
Use compact rows and content-based widths in navigation bar child lists. The default row height is 18 px and the text stays at 13 px. The wide desktop fixture shows 20 complete rows, up from 14. The two-folder list in the narrow fixture uses 95 px of width, down from 199 px.
113 рядки
2.2 KiB
CSS
113 рядки
2.2 KiB
CSS
.barPopup,
|
|
.childPopup {
|
|
width: max-content;
|
|
overflow: hidden;
|
|
font-size: var(--fs-chrome);
|
|
}
|
|
.root {
|
|
outline: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 900px;
|
|
}
|
|
.bar {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
padding: var(--space-1);
|
|
overflow-x: auto;
|
|
scrollbar-width: thin;
|
|
white-space: nowrap;
|
|
}
|
|
.segmentWrap {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex: none;
|
|
}
|
|
.sep {
|
|
color: var(--fg-faint);
|
|
margin: 0 var(--space-0-5);
|
|
}
|
|
.segment {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
max-width: min(288px, 55vw);
|
|
height: var(--h-control-small);
|
|
padding: 0 var(--space-1-5);
|
|
border: none;
|
|
border-radius: var(--radius-small);
|
|
background: transparent;
|
|
color: var(--fg);
|
|
font: inherit;
|
|
cursor: default;
|
|
}
|
|
.segment:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.active,
|
|
.active:hover {
|
|
background: var(--bg-list-selected);
|
|
color: var(--fg-strong);
|
|
}
|
|
.childPopup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.list {
|
|
--nav-child-row: calc(max(16px, 1.2em) + var(--space-0-5));
|
|
--nav-child-list-padding: 5px;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
max-width: min(480px, calc(100vw - 14px));
|
|
max-height: min(calc(20 * var(--nav-child-row) + 2 * var(--nav-child-list-padding)), 62vh);
|
|
padding: var(--nav-child-list-padding);
|
|
overflow: auto;
|
|
overflow-x: hidden;
|
|
outline: none;
|
|
}
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
height: var(--nav-child-row);
|
|
padding: 0 var(--space-0-5);
|
|
border-radius: var(--radius-selection);
|
|
color: var(--fg);
|
|
line-height: 1.2;
|
|
white-space: nowrap;
|
|
}
|
|
.rowActive {
|
|
background: var(--bg-list-selected);
|
|
color: var(--fg-strong);
|
|
}
|
|
.rowLabel {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.rowIcon {
|
|
flex: none;
|
|
}
|
|
.empty {
|
|
padding: 4px 6px;
|
|
color: var(--fg-muted);
|
|
}
|
|
.childHeader {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
max-width: min(480px, calc(100vw - 14px));
|
|
height: calc(var(--h-list-row) + var(--space-2));
|
|
padding: 0 var(--space-3);
|
|
border-bottom: 1px solid var(--border-popup);
|
|
color: var(--fg-muted);
|
|
}
|
|
.rowChevron {
|
|
flex: none;
|
|
margin-left: auto;
|
|
color: var(--fg-faint);
|
|
}
|