feat(workbench): add merged main menu style (#561)

* feat(workbench): add merged main menu style

* fix(workbench): restore focus on a second Alt and keep closed menus closed
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-10-31 20:47:32 +08:00
1 джерело bdadecdf91
коміт e7740e4032
10 files changed
+562 -59

No files matched your search

+26 -1
Переглянути файл
@@ -125,7 +125,32 @@
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
/* The expanded main menu: File Edit View … in place of the project widgets. */
/* Preserve the menu's natural width while allowing its slot to yield to toolbar controls. */
.mainMenuSlot {
position: relative;
flex: 0 1 auto;
min-width: 34px;
height: 30px;
overflow: hidden;
}
.mainMenuSlot ~ .item,
.mainMenuSlot ~ .tools {
flex-shrink: 0;
}
.menuMeasure {
width: max-content;
visibility: hidden;
pointer-events: none;
}
.menuPresentation {
position: absolute;
top: 0;
left: 0;
height: 100%;
display: flex;
align-items: center;
}
/* The main menu titles. */
.menuBar {
flex: none;
display: flex;