дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 09:11:10 +02:00
A truncated element with a long data-tooltip put that text in the tooltip's shortcut slot (nowrap, keys font), which overflowed the bubble and crushed the main text to one character per line, as on the Remote Host Resources status item. The tooltip now shows such text as a wrapping note separate from the shortcut and honours data-no-tooltip up to the tooltip owner. The remote status items opt out of the redundant ellipsis tooltip and ellipsize their labels, and the breadcrumbs yield space first in the status bar. Co-authored-by: dengliu <[email protected]>
188 рядки
3.6 KiB
CSS
188 рядки
3.6 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;
|
|
}
|
|
.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;
|
|
}
|