fix(editor): make Find Usages result rows easier to scan (#5207)

Find Usages now uses the result tree's font for both line numbers and snippets. Line numbers start at the same indent and take only the width of their digits, with a 4 px gap before the snippet. This brings short line numbers closer to their code and gives the snippet more room on narrow panes.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-22 21:31:46 +08:00
1 джерело bef9223913
коміт 39068cffb3
3 files changed
+74 -6

No files matched your search

+8 -5
Переглянути файл
@@ -98,13 +98,13 @@
flex: none;
color: var(--fg-subtle);
}
.occurrence {
gap: var(--space-1);
}
.line {
flex: none;
min-width: 3ch;
text-align: right;
font-family: var(--font-mono);
font-size: var(--fs-ui);
color: var(--fg-line-number);
font-variant-numeric: tabular-nums;
color: var(--fg-subtle);
}
.preview {
min-width: 0;
@@ -114,6 +114,9 @@
font-size: var(--fs-code);
color: var(--fg);
}
.occurrence .preview {
font: inherit;
}
.match {
background: var(--bg-search-match);
color: var(--fg-search-match, inherit);