fix(debugger): keep values readable beside long type labels (#5185)

Keep debugger values readable beside long runtime types. The row reserves space for a value preview based on its length, so short values leave more room for names. A truncated type can still be read on hover, and the full type appears when the pane has room.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-22 20:32:52 +08:00
1 джерело c5824771c1
коміт b7f3df0472
2 files changed
+60 -4

No files matched your search

+4 -4
Переглянути файл
@@ -55,7 +55,8 @@
display: flex;
align-items: center;
gap: var(--space-1);
min-width: min(8ch, 45%);
/* Cap the automatic flex minimum at the space needed for a short preview. */
width: min(14ch, 50%);
flex: 1 1 0;
}
@@ -135,9 +136,8 @@
}
.type {
min-width: 0;
max-width: 25%;
flex: 0 1 auto;
min-width: min(3ch, 10%);
flex: 0 4 auto;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);