дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 05:52:23 +02:00
fix(remote-dev): fix vertical text wrapping and clipping in resource tooltip (#6618)
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]>
Цей коміт міститься в:
1 джерело
4c01ce4443
коміт
68abd00a7f
9 files changed
+92
-10
No files matched your search
@@ -22,10 +22,20 @@
|
||||
transition: opacity var(--dur-fast) var(--ease);
|
||||
}
|
||||
/* Long paths wrap inside the bubble; the shortcut stays on one line. */
|
||||
.withNote {
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
row-gap: var(--space-0-5);
|
||||
}
|
||||
.text {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.note {
|
||||
min-width: 0;
|
||||
color: color-mix(in srgb, var(--fg-tooltip) 68%, transparent);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.shortcut {
|
||||
font-family: var(--font-keys);
|
||||
font-size: var(--fs-ui);
|
||||
@@ -43,6 +53,7 @@
|
||||
box-shadow: var(--shadow-stripe-tooltip, var(--shadow-tooltip));
|
||||
line-height: 18px;
|
||||
}
|
||||
.stripe .note,
|
||||
.stripe .shortcut {
|
||||
color: color-mix(in srgb, var(--fg-stripe-tooltip, var(--fg-tooltip)) 80%, transparent);
|
||||
}
|
||||
|
||||
Reference in new issue
Заблокувати користувача