дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
Size the debugger's full-value popup to the workbench and let the text fill the available space as the popup grows. Render the value with the configured editor font, line height and tab width. Keep the resized popup visible if the workbench shrinks.
193 рядки
2.9 KiB
CSS
193 рядки
2.9 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: var(--space-1);
|
|
min-width: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
font-family: var(--font-ui);
|
|
font-size: var(--fs-ui);
|
|
white-space: pre;
|
|
color: var(--fg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.name {
|
|
min-width: 0;
|
|
max-width: 45%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
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;
|
|
}
|
|
|
|
.eq {
|
|
flex: none;
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
.valueGroup {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
min-width: min(8ch, 45%);
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
.value {
|
|
min-width: 0;
|
|
flex: 1 1 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.showValue {
|
|
flex: 0 0 auto;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
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);
|
|
}
|
|
|
|
.valuePopup {
|
|
height: clamp(240px, 50vh, 560px);
|
|
}
|
|
|
|
.valuePopup > [data-dialog-body] {
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.valuePopupValue {
|
|
flex: 1;
|
|
min-width: 0;
|
|
margin: 0;
|
|
padding: var(--space-3) var(--space-4);
|
|
overflow: auto;
|
|
color: var(--fg);
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
user-select: text;
|
|
}
|
|
|
|
.valuePopupValue:focus-visible {
|
|
outline: 1px solid var(--focus-ring);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.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;
|
|
max-width: 25%;
|
|
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: min(80px, 40%);
|
|
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: 1;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
padding-block: var(--space-1);
|
|
}
|