дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
Keep a debugger variable's icon, name and equals sign anchored when Set Value opens. The input fits the tree row, and an error uses a limited share of the value area so the field remains usable in a narrow pane.
203 рядки
3.1 KiB
CSS
203 рядки
3.1 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);
|
|
/* Cap the automatic flex minimum at the space needed for a short preview. */
|
|
width: min(14ch, 50%);
|
|
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: min(3ch, 10%);
|
|
flex: 0 4 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);
|
|
}
|
|
|
|
.editRow,
|
|
.editRow > .valueGroup {
|
|
height: 100%;
|
|
}
|
|
|
|
.editInput {
|
|
box-sizing: border-box;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: calc(100% - var(--space-1));
|
|
padding: 0 var(--space-1);
|
|
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);
|
|
}
|
|
|
|
.editError {
|
|
max-width: 33%;
|
|
}
|
|
|
|
/* 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);
|
|
}
|