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.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-20 03:05:31 +08:00
1 джерело 5c2e7ff92a
коміт 98da80b2b3
5 files changed
+235 -67

No files matched your search

+4 -1
Переглянути файл
@@ -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;