Файли
openidea/src/workbench/StatusBar.module.css
T
LU XIANGRUIтаwildcatDownstairs e666bb2e33 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]>
2026-12-04 00:29:29 +08:00

190 рядки
3.8 KiB
CSS

/* Islands: the status bar sits on the frame background, no divider. */
.bar {
height: var(--h-statusbar);
flex: none;
display: flex;
align-items: center;
padding: 0 10px;
font-family: var(--font-ui);
font-size: var(--fs-chrome);
color: var(--fg-muted);
white-space: nowrap;
overflow: hidden;
position: relative;
}
/* Widgets read as plain UI text like IDEA's, whatever their own font. */
.item {
font-family: var(--font-ui);
}
.item button {
font-family: inherit;
font-size: inherit;
color: inherit;
}
/* StatusBar.Widget.widgetInsets 6,8 with hoverInsets 3,4,1,4: the hover fills all but 4px of
each side, so the item keeps 4px and its button the other 4px around the text. */
.item {
flex: none;
display: flex;
align-items: center;
min-width: 0;
padding: 0 4px;
}
/* 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) {
flex-shrink: 1000;
min-width: min(152px, 28vw);
}
.shrink > * {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.item:empty {
display: none;
}
.spacer {
flex: 1;
min-width: 8px;
}
.slot {
display: contents;
}
/* An overflowed item while its popup is closed: measurable, out of the flow, at the bar's end. */
.overflowed {
position: absolute;
inset: 0 10px 0 auto;
display: flex;
align-items: center;
visibility: hidden;
}
.more {
flex: none;
}
.moreList {
display: flex;
flex-direction: column;
padding: var(--space-1) 0;
font-family: var(--font-ui);
font-size: var(--fs-ui);
color: var(--fg-muted);
white-space: nowrap;
}
.moreRow {
display: flex;
align-items: center;
gap: var(--space-3);
padding: 0 var(--space-2) 0 var(--space-3);
min-height: var(--h-statusbar);
}
.moreLabel {
flex: 1;
color: var(--fg-subtle);
}
.task {
max-width: 320px;
}
.taskTitle {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
font-family: var(--font-ui);
}
.taskBar {
width: 96px;
flex: none;
}
.taskMore {
color: var(--fg-faint);
}
.taskPopup[data-popup] {
display: flex;
flex-direction: column;
width: min(440px, calc(100vw - 24px));
overflow: hidden;
font-family: var(--font-ui);
font-size: var(--fs-ui);
}
.taskListHeader {
flex: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
padding: var(--space-1) var(--space-2) var(--space-1) var(--space-4);
border-block-end: 1px solid var(--border-popup);
}
.taskListHeader h2 {
margin: 0;
font-size: inherit;
font-weight: 600;
color: var(--fg-strong);
}
.taskList {
min-height: 0;
margin: 0;
padding: var(--space-1) 0;
list-style: none;
overflow: auto;
}
.taskRow {
display: grid;
gap: var(--space-1);
padding: var(--space-2) var(--space-4);
}
.taskRow + .taskRow {
border-block-start: 1px solid var(--border-popup);
}
.taskRowProgress {
display: grid;
grid-template-columns: minmax(0, 1fr) 4.5ch 24px;
align-items: center;
gap: var(--space-2);
min-height: var(--h-row);
font-size: var(--fs-small);
}
.taskRowAction {
grid-column: 3;
justify-self: end;
}
.taskRowTitle {
color: var(--fg-strong);
font-weight: 500;
overflow-wrap: anywhere;
}
.taskCancelOff {
display: inline-flex;
}
.taskCancelOff > button {
pointer-events: none;
}
.taskPct {
color: var(--fg-subtle);
font-variant-numeric: tabular-nums;
text-align: end;
}
.taskMessage {
color: var(--fg-subtle);
font-size: var(--fs-small);
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.taskEmpty {
display: grid;
place-items: center;
min-height: 84px;
padding: var(--space-4);
color: var(--fg-muted);
}
.info {
color: var(--fg-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}