fix(problems): keep diagnostics readable in narrow panes (#4495)

The Problems tool window moves navigation and severity filters into a vertical toolbar left of the diagnostic list. Long directories, counts and diagnostic sources truncate (full text on hover) so file names and messages stay readable in a narrow split; line numbers use tabular digits.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-19 20:48:31 +08:00
1 джерело 361ca01cc0
коміт dd3c9c7b0a
6 files changed
+122 -27

No files matched your search

+43 -6
Переглянути файл
@@ -14,6 +14,24 @@
flex: 1;
min-height: 0;
}
.results {
display: flex;
min-height: 0;
height: 100%;
}
.toolbar {
flex: none;
display: flex;
flex-direction: column;
gap: var(--space-1);
padding: var(--space-1);
border-inline-end: 1px solid var(--border);
overflow-y: auto;
}
.tree {
flex: 1;
min-width: 0;
}
.tabs {
min-width: 0;
border: 0;
@@ -38,10 +56,21 @@
flex: none;
color: var(--fg-muted);
}
.fileLocation {
display: flex;
gap: var(--space-1-5);
min-width: 0;
overflow: hidden;
}
.fileName {
flex: none;
max-inline-size: 100%;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-strong);
}
.fileError {
padding-block: var(--space-0-5);
text-decoration-line: underline;
text-decoration-style: wavy;
text-decoration-color: var(--danger);
@@ -51,18 +80,25 @@
.selectedText {
color: var(--fg-strong);
}
.muted {
flex: none;
.directory {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
}
.count {
flex: none;
max-inline-size: 50%;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
margin-left: 4px;
}
.source {
flex: none;
margin-left: auto;
padding-right: 8px;
min-width: 0;
max-inline-size: 25%;
margin-inline-start: auto;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-faint);
}
.message {
@@ -77,6 +113,7 @@
.position {
flex: none;
color: var(--fg-subtle);
font-variant-numeric: tabular-nums;
}
.sev-error {
flex: none;