fix(debugger): align compact editor value hints (#5262)

Use the standard bold UI font for compact debugger value hints. Put the variable icon and expand control beside the summary so wrapped values align with their first line. Size the hint to the available editor width, including when a dock reduces the space or the window is resized.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-23 09:14:18 +08:00
1 джерело 4bb22df1fb
коміт dd0eeeae29
5 files changed
+128 -43

No files matched your search

+23 -8
Переглянути файл
@@ -169,13 +169,25 @@
/* Data Views › Show value tooltip on mouse hover. */
.valueTooltip {
max-width: 520px;
padding: 4px 8px;
font-family: var(--font-mono);
font-weight: var(--fw-code);
font-size: var(--fs-code);
display: flex;
align-items: flex-start;
gap: var(--space-1);
max-width: min(90vw, calc(var(--debug-value-editor-width, 100vw) - var(--space-2)));
padding: var(--space-1) var(--space-2);
font-family: var(--font-ui);
font-size: var(--fs-ui);
font-weight: 700;
line-height: 1.4;
}
.valueText {
min-width: 0;
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: anywhere;
}
.valueGlyph {
display: inline-flex;
flex: none;
margin-top: 1px;
}
.valueTooltipTree {
display: flex;
@@ -194,19 +206,22 @@
padding: 0;
overflow: hidden;
}
:global(.cm-lsp-hint):has(> .valueTooltip) {
padding: 0;
}
.valueExpand {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
margin-right: 4px;
flex: none;
margin-top: 1px;
padding: 0;
border: 0;
border-radius: var(--radius-small);
background: transparent;
color: var(--fg-muted);
vertical-align: -3px;
cursor: pointer;
}
.valueExpand:hover {