fix(workbench): main toolbar, tool window stripe and status bar metrics (#7829)

Main toolbar items get a 10px pitch and the dropdowns 10/6px insets with a 16px chevron; stripe buttons get 5px padding on both sides; the status bar is 34px with 4px widget hover insets, its breadcrumbs lifted 5px, and the islands keep a 3px inset above it. Language Services moves after the caret position in the status bar. Compact mode keeps its previous metrics.

Fixed-viewport e2e layouts (commit checks, project tree second click, main toolbar label compression next to the New Agent Task button) get room for the wider gaps and the taller status bar.

Co-authored-by: wildcatDownstairs <[email protected]>
Цей коміт міститься в:
LU XIANGRUIтаwildcatDownstairs authored and GitHub committed 2026-12-04 00:29:29 +08:00
1 джерело 4f2d85007b
коміт e666bb2e33
23 files changed
+115 -53

No files matched your search

+2 -1
Переглянути файл
@@ -135,7 +135,8 @@ export function activate(): () => void {
registerStatusItem({
id: "code-insight.servers",
align: "right",
priority: 5,
// IDEA: after Position, before LineSeparator.
priority: 25,
component: ServerStatus,
title: "Language Services",
}),
+1 -1
Переглянути файл
@@ -91,7 +91,7 @@ function Chooser({ active }: { active: string }) {
<span className={styles.widgetName} data-toolbar-label="">
{active}
</span>
<Icon name="chevron-down" size={14} className={styles.widgetChevron} />
<Icon name="chevron-down" size={16} className={styles.widgetChevron} />
</BarButton>
<Menu
open={open}
+1 -1
Переглянути файл
@@ -97,7 +97,7 @@ function Chooser({ root }: { root: string }) {
<span className={styles.widgetName} data-toolbar-label="">
{label}
</span>
<Icon name="chevron-down" size={14} className={styles.widgetChevron} />
<Icon name="chevron-down" size={16} className={styles.widgetChevron} />
</BarButton>
<Menu
open={chooserOpen}
+1 -1
Переглянути файл
@@ -99,7 +99,7 @@ function Chooser() {
<span className={styles.widgetName} data-toolbar-label="">
{busy && busy === current?.udid ? `${label}…` : label}
</span>
<Icon name="chevron-down" size={14} className={styles.widgetChevron} />
<Icon name="chevron-down" size={16} className={styles.widgetChevron} />
</BarButton>
<Menu open={open} anchor={anchor} items={items} placement="bottom-end" onClose={() => setOpen(false)} />
</>
+3 -2
Переглянути файл
@@ -379,7 +379,6 @@
min-width: 0;
display: inline-flex;
align-items: center;
gap: var(--space-1);
max-width: 260px;
height: var(--h-toolbar-widget);
border-radius: var(--radius-toolbar-dropdown);
@@ -451,6 +450,7 @@
flex: none;
}
.widgetChevron {
margin-inline-start: calc(var(--toolbar-dropdown-chevron-gap) - var(--toolbar-dropdown-gap));
color: var(--fg-subtle);
flex: none;
}
@@ -458,7 +458,8 @@
flex: none;
display: flex;
align-items: center;
gap: var(--space-0-5);
/* Run, Debug and More keep the main toolbar's 40px button pitch (MainToolbar.Icon.insets 6,5,4,5). */
gap: var(--toolbar-item-gap);
}
.widgetRun:not(:disabled) {
color: var(--success);
+1 -1
Переглянути файл
@@ -94,7 +94,7 @@ export function RunWidget() {
<span className={styles.widgetName} data-toolbar-label="">
{selected ? label(selected) : tx(currentFile ? "Current File" : "Select Configuration")}
</span>
<Icon name="chevron-down" size={14} className={styles.widgetChevron} />
<Icon name="chevron-down" size={16} className={styles.widgetChevron} />
</BarButton>
<span className={styles.widgetButtons}>
{showLoading ? (
+2 -2
Переглянути файл
@@ -1,7 +1,6 @@
.widget {
display: inline-flex;
align-items: center;
gap: var(--space-1);
max-width: 280px;
height: var(--h-toolbar-widget);
border-radius: var(--radius-toolbar-dropdown);
@@ -19,8 +18,9 @@
flex: none;
color: var(--fg-muted);
}
.chevron {
.widgetChevron {
flex: none;
margin-inline-start: calc(var(--toolbar-dropdown-chevron-gap) - var(--toolbar-dropdown-gap));
color: var(--fg-subtle);
}
.name {
+1 -1
Переглянути файл
@@ -181,7 +181,7 @@ export function BranchWidget({ place = "toolbar" }: { place?: BranchWidgetPlace
)}
{/* Like IDEA's widget: icons only; counts are in the tooltip. */}
<BranchSync behind={branch.behind} ahead={ahead} unfetched={!!pending} showCounts={false} onSelect={openSync} />
{toolbar && <Icon name="chevron-down" size={14} className={styles.chevron} />}
{toolbar && <Icon name="chevron-down" size={16} className={styles.widgetChevron} />}
</BarButton>
</>
);
+2
Переглянути файл
@@ -12,7 +12,9 @@
.status[data-mode="replace"] {
color: var(--warning);
}
/* Off, it reads "Vim" like any other text widget: no room kept for the mode names. */
.off {
min-width: 0;
color: var(--fg-subtle);
font-weight: normal;
}