дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 13:06:07 +02:00
- Start with equal space for the results tree and source preview. Each orientation restores its saved split and starts at 50/50 when it has no saved split. - Follow the editor's line height and size the preview gutter for the document's longest line number. Keep the selected line visible when the panel height or line metrics change.
168 рядки
2.7 KiB
CSS
168 рядки
2.7 KiB
CSS
.view {
|
|
height: 100%;
|
|
display: flex;
|
|
min-height: 0;
|
|
}
|
|
.tabs {
|
|
min-width: 0;
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
.toolbar {
|
|
flex: none;
|
|
width: 32px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-0-5);
|
|
padding: 4px 0;
|
|
border-right: 1px solid var(--border);
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
.toolbarSep {
|
|
flex: none;
|
|
width: 16px;
|
|
height: 1px;
|
|
margin: 3px 0;
|
|
background: var(--border);
|
|
}
|
|
.summary {
|
|
min-height: 26px;
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-0-5) var(--space-1-5);
|
|
padding: var(--space-0-5) 10px;
|
|
font-size: var(--fs-ui);
|
|
color: var(--fg-subtle);
|
|
}
|
|
.groupLabel {
|
|
color: var(--fg);
|
|
}
|
|
.error {
|
|
color: var(--danger);
|
|
}
|
|
.link {
|
|
max-width: 100%;
|
|
border: none;
|
|
background: none;
|
|
padding: 0;
|
|
font: inherit;
|
|
color: var(--link);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.link:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
.body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.body > * {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.body > .summary {
|
|
flex: 0 0 auto;
|
|
}
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
min-width: 0;
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
}
|
|
.icon {
|
|
flex: none;
|
|
}
|
|
.file {
|
|
flex: none;
|
|
max-width: 56%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--fg);
|
|
}
|
|
.directory {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.count {
|
|
flex: none;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.occurrence {
|
|
gap: var(--space-1);
|
|
}
|
|
.line {
|
|
flex: none;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.preview {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-code);
|
|
color: var(--fg);
|
|
}
|
|
.occurrence .preview {
|
|
font: inherit;
|
|
}
|
|
.match {
|
|
background: var(--bg-search-match);
|
|
color: var(--fg-search-match, inherit);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.note {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: var(--fs-small);
|
|
font-style: italic;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.excluded .preview,
|
|
.excluded .file,
|
|
.excluded .line {
|
|
opacity: 0.5;
|
|
text-decoration: line-through;
|
|
}
|
|
.panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
.panel > * {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.splitFrame {
|
|
display: flex;
|
|
min-width: 0;
|
|
}
|
|
.sourcePreview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-code);
|
|
line-height: var(--lh-code);
|
|
}
|
|
.sourcePreview .sourceText[role="region"] {
|
|
font: inherit;
|
|
font-weight: var(--fw-code);
|
|
}
|