Файли
openidea/src/features/debugger/editor/editor.module.css
T
l0ng-ai dd0eeeae29 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.
2026-11-23 09:14:18 +08:00

271 рядки
6.5 KiB
CSS
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
/* The marker replaces the number and shares its trailing edge. */
.bp {
position: relative;
color: transparent !important;
}
.bp::before {
content: "";
position: absolute;
left: calc(100% - var(--space-1) - 0.5em);
top: 50%;
font-size: var(--openidea-editor-font-size, var(--fs-code));
width: 1em;
height: 1em;
transform: translate(-50%, -50%);
border-radius: 50%;
background: var(--danger);
box-sizing: border-box;
pointer-events: none;
}
.normal::before {
background: var(--danger);
}
/* Disabled: hollow circle. */
.disabled::before {
background: transparent;
border: 1.5px solid var(--danger);
}
/* Mute Breakpoints (expui breakpointMuted). */
.muted::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointMuted.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .muted::before {
background-image: url("../../../ui/expui/breakpoints/breakpointMuted_dark.svg");
}
/* Not bound by the adapter. */
.unverified::before {
background: var(--fg-gutter);
}
/* Condition / hit count: dot with a small notch. */
.conditional::before {
background: radial-gradient(circle at 50% 50%, var(--bg-app) 0 0.16em, var(--danger) 0.18em);
}
/* Logpoint: diamond. */
.log::before {
border-radius: 1.5px;
width: 0.8em;
height: 0.8em;
transform: translate(-50%, -50%) rotate(45deg);
}
/* Bound by the debugger in a running session (expui breakpointValid). */
.verified::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointValid.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .verified::before {
background-image: url("../../../ui/expui/breakpoints/breakpointValid_dark.svg");
}
/* Method breakpoints / field watchpoints (expui icons). */
.method::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointMethod.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .method::before {
background-image: url("../../../ui/expui/breakpoints/breakpointMethod_dark.svg");
}
.methodDisabled::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointMethodDisabled.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .methodDisabled::before {
background-image: url("../../../ui/expui/breakpoints/breakpointMethodDisabled_dark.svg");
}
.methodVerified::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointMethodValid.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .methodVerified::before {
background-image: url("../../../ui/expui/breakpoints/breakpointMethodValid_dark.svg");
}
.field::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointField.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .field::before {
background-image: url("../../../ui/expui/breakpoints/breakpointField_dark.svg");
}
.fieldDisabled::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointFieldDisabled.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .fieldDisabled::before {
background-image: url("../../../ui/expui/breakpoints/breakpointFieldDisabled_dark.svg");
}
.fieldVerified::before {
border-radius: 0;
background: url("../../../ui/expui/breakpoints/breakpointFieldValid.svg") center / contain no-repeat;
}
:global(:root[data-theme^="dark"]) .fieldVerified::before {
background-image: url("../../../ui/expui/breakpoints/breakpointFieldValid_dark.svg");
}
/* Beat the caret row (`.cm-activeLine`), as IDEA does; the suspended line wins over a breakpoint. */
:global(.cm-editor) :global(.cm-line).bpLine {
--openidea-line-bg: var(--bg-breakpoint-line);
}
:global(.cm-editor) :global(.cm-line).execLine {
--openidea-line-bg: var(--bg-debug-line);
}
.inlineValue {
margin-left: 24px;
color: var(--syn-inline-value);
font-size: var(--fs-ui);
font-family: var(--font-mono);
white-space: pre;
pointer-events: none;
-webkit-user-select: none;
user-select: none;
}
.inlineValuePart {
pointer-events: auto;
cursor: pointer;
}
.inlineValuePart:hover {
text-decoration: underline;
}
.inlineShow {
margin-left: 2px;
padding: 0;
border: 0;
background: none;
color: var(--link);
font: inherit;
cursor: pointer;
pointer-events: auto;
}
.inlineShow:hover {
color: var(--link-hover);
text-decoration: underline;
}
/* Data Views › Show value tooltip on mouse hover. */
.valueTooltip {
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;
overflow-wrap: anywhere;
}
.valueGlyph {
display: inline-flex;
flex: none;
margin-top: 1px;
}
.valueTooltipTree {
display: flex;
flex: 1 1 auto;
min-height: 0;
width: min(460px, calc(var(--debug-value-editor-width, 100vw) - var(--space-2)));
max-width: 100%;
height: min(260px, 50vh);
padding: 0;
font-family: var(--font-ui);
white-space: normal;
}
:global(.cm-lsp-hint):has(> .valueTooltipTree) {
display: flex;
flex-direction: column;
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;
flex: none;
margin-top: 1px;
padding: 0;
border: 0;
border-radius: var(--radius-small);
background: transparent;
color: var(--fg-muted);
cursor: pointer;
}
.valueExpand:hover {
background: var(--bg-hover, transparent);
color: var(--fg-strong);
}
.valueName {
color: var(--fg-strong);
}
.valueType {
color: var(--fg-subtle);
}
/* Smart Step Into: calls on the paused line framed, the selected one filled. */
.stepTarget {
border-radius: 2px;
box-shadow: inset 0 0 0 1px var(--border-strong);
cursor: pointer;
}
.stepTargetSelected {
background: var(--accent-soft);
box-shadow: inset 0 0 0 1px var(--accent);
}
/* Inlay Run to Cursor button, left of a hovered line's text. */
.runToCursor {
position: absolute;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
border: 1px solid var(--border-popup);
border-radius: var(--radius-small);
background: var(--bg-popup);
box-shadow: var(--shadow-tooltip);
color: var(--fg);
cursor: pointer;
}
.runToCursor:hover {
background: var(--bg-hover);
}