Файли
openidea/src/features/debugger/ui/VariablesView.module.css
T
l0ng-ai 08613ca800 fix(debugger): keep evaluation results readable in short dialogs (#4592)
The Evaluate dialog's result had a 220px minimum height, so in short windows the dialog overflowed and the result and buttons were cut off. The dialog now caps its height to the window, the expression field scrolls within half of it, imports wrap, and the result takes the remaining space; the expression uses the editor font and its label is tied to the field.
2026-11-20 04:49:29 +08:00

167 рядки
2.5 KiB
CSS

.root {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
width: 100%;
flex: 1;
}
.row {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
width: 100%;
max-width: 100%;
box-sizing: border-box;
font-family: var(--font-mono);
font-size: var(--fs-ui);
white-space: pre;
color: var(--fg);
overflow: hidden;
}
.name {
flex: none;
color: var(--fg);
}
.evalName {
flex: 0 1 auto;
max-width: 45%;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.varName {
color: var(--debug-name, var(--syn-property));
}
.nodeIcon {
flex: none;
margin-right: 1px;
}
.eq {
flex: none;
color: var(--fg-subtle);
}
.value {
min-width: 0;
flex: 1 1 0;
overflow: hidden;
text-overflow: ellipsis;
}
.showValue {
flex: none;
padding: 0;
border: 0;
background: none;
color: var(--link);
font: inherit;
cursor: pointer;
}
.showValue:hover {
color: var(--link-hover);
text-decoration: underline;
}
.showValue:focus-visible {
outline: 1px solid var(--accent);
outline-offset: 2px;
border-radius: var(--radius-small);
}
.valuePopupContent {
padding: 12px 16px;
}
.valuePopupValue {
max-height: min(420px, calc(100vh - 120px));
margin: 0;
overflow: auto;
color: var(--fg);
font-family: var(--font-mono);
font-size: var(--fs-code);
font-weight: var(--fw-code);
white-space: pre-wrap;
word-break: break-word;
user-select: text;
}
.number {
color: var(--syn-number);
}
.string {
color: var(--syn-string);
}
.keyword {
color: var(--syn-keyword);
}
.object {
color: var(--fg);
}
.plain {
color: var(--fg);
}
.type {
min-width: 0;
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
}
.error {
color: var(--danger);
overflow: hidden;
text-overflow: ellipsis;
}
.scope {
color: var(--fg);
font-size: var(--fs-ui);
}
.message {
color: var(--fg-faint);
font-size: var(--fs-ui);
}
.editInput {
flex: 1;
min-width: 80px;
height: 18px;
padding: 0 4px;
font: inherit;
font-family: var(--font-mono);
color: var(--fg-strong);
background: var(--bg-app);
border: 1px solid var(--accent);
border-radius: var(--radius-small);
outline: none;
}
.editInvalid {
border-color: var(--danger);
}
/* Changed since the previous stop. */
.name.changed {
color: var(--debug-changed, var(--link));
}
/* Expanded value hint in the editor. */
.hint {
display: flex;
flex-direction: column;
min-width: 0;
width: 460px;
height: 260px;
}