fix(editor): keep the current breadcrumb visible (#4579)

Long breadcrumb trails hid the current file or symbol when the editor or status bar ran out of room. Both trails now scroll to the current location (with edge fades) and keep earlier entries reachable by wheel, trackpad or keyboard. The status bar reserves a minimum width for the path and moves lower-priority widgets into its overflow menu. Code breadcrumbs use the editor font and highlight the symbol at the caret.
This commit is contained in:
l0ng-ai
2026-11-20 03:05:31 +08:00
committed by GitHub
parent 5c2e7ff92a
commit 98da80b2b3
5 changed files with 235 additions and 67 deletions
+4 -1
View File
@@ -29,11 +29,14 @@
min-width: 0;
padding: 0 4px;
}
/* Left items (breadcrumbs…) give way first on narrow windows; right items move into the overflow popup. */
/* Left items shrink on narrow windows; right items move into the overflow popup. */
.shrink {
flex: 0 1 auto;
overflow: hidden;
}
.shrink[data-status-item="editor.breadcrumbs"]:not(:empty) {
min-width: min(152px, 28vw);
}
.shrink > * {
min-width: 0;
overflow: hidden;