Файли
openidea/src/features/debugger/ui/DebugToolWindow.module.css
T
l0ng-ai 36061abc91 fix(debugger): lay out inline evaluation and history together (#5216)
The Variables pane now keeps Add to Watches and the history arrow at the trailing edge of the evaluation field. The field uses the configured editor font family at up to the workbench text size, and its short placeholder fits narrow docks. The history menu matches the field width and uses the existing Evaluate history for single-line expressions.
2026-11-22 22:24:43 +08:00

383 рядки
6.1 KiB
CSS

.root {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
.emptyWrap {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.sessionTabs {
min-width: 0;
border: 0;
background: none;
}
.toolbar {
min-height: 32px;
flex: none;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5) var(--space-2);
padding: var(--space-0-5) var(--space-2) var(--space-0-5) var(--space-1);
border-bottom: 1px solid var(--border);
min-width: 0;
}
.actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5);
min-width: 0;
}
.tool {
width: var(--h-control);
height: var(--h-control);
flex: none;
}
.sep {
flex: none;
width: 1px;
height: 16px;
background: var(--border);
margin: 0 5px;
}
.tabs {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5);
min-width: 0;
}
.tab {
height: 24px;
max-inline-size: 100%;
padding: 0 8px;
border-radius: var(--radius-small);
color: var(--fg);
font-size: var(--fs-ui);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tab:hover {
background: var(--bg-toolbar-hover);
}
.tabActive,
.tabActive:hover {
background: var(--bg-toolbar-selected);
color: var(--fg-strong);
}
.tab:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
.panel {
flex: 1;
min-height: 0;
display: flex;
}
.split {
flex: 1;
min-height: 0;
min-width: 0;
}
/* frames */
.frames {
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
padding-bottom: var(--space-1);
}
.threadHeader {
display: flex;
align-items: center;
flex: none;
height: var(--h-field);
padding: 0 var(--space-1);
border-bottom: 1px solid var(--border);
}
.threadSelect {
width: 100%;
font-size: var(--fs-ui);
}
.frameList {
flex: 1;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
outline: none;
padding: var(--space-1) var(--space-1) 0;
}
.frame {
height: var(--h-row);
flex: none;
display: flex;
align-items: center;
gap: var(--space-1-5);
padding: 0 8px;
border-radius: var(--radius-small);
text-align: left;
font-size: var(--fs-ui);
color: var(--fg);
white-space: nowrap;
}
.frame:hover {
background: var(--bg-tree-hover);
}
.frameSelected,
.frameSelected:hover {
background: var(--bg-tree-selected-inactive);
}
.frameList:focus-within .frameSelected {
background: var(--bg-tree-selected);
}
.frameLibrary .frameName {
color: var(--fg-muted);
}
.frameIcon {
flex: none;
}
.frameText,
.frameLabel {
display: flex;
align-items: baseline;
min-width: 0;
}
.frameText {
flex: 1;
}
.frameLine {
flex: none;
}
.frameName,
.frameFile {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.frameFile {
flex: 0 1000 auto;
min-width: min(12ch, 32%);
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.hiddenFrames {
display: block;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
font-style: italic;
}
.note {
padding: 4px 12px;
color: var(--fg-subtle);
font-size: var(--fs-ui);
}
/* variables */
.variables {
height: 100%;
min-width: 0;
display: flex;
flex-direction: column;
min-height: 0;
}
.evalField {
min-height: var(--h-field);
flex: none;
display: flex;
align-items: center;
gap: var(--space-1);
padding: var(--space-0-5) var(--space-1) var(--space-0-5) var(--space-2);
background: var(--bg-input);
border-bottom: 1px solid var(--border);
}
.evalField:focus-within {
box-shadow: inset 0 -1px var(--focus-ring);
}
.evalField > button {
flex: none;
}
.evalField .evalInput {
padding: 0;
}
.evalHistory {
padding-block: var(--space-1);
overflow-x: hidden;
}
.repl {
height: 28px;
flex: none;
display: flex;
align-items: center;
gap: var(--space-2);
}
.prompt {
color: var(--fg-subtle);
font-family: var(--font-mono);
}
.evalInput {
flex: 1;
min-width: 0;
background: none;
border: 0;
outline: none;
color: var(--fg-strong);
font: var(--fs-ui) var(--font-mono);
-webkit-user-select: text;
user-select: text;
}
.evalInput::placeholder {
color: var(--fg-subtle);
font-family: var(--font-ui);
}
.evalInput:disabled {
cursor: default;
}
/* console */
/* The Console tab: actions in a vertical strip on the left, as in the Run window. */
.consoleArea {
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
}
.consoleToolbar {
flex: none;
width: 32px;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-0-5);
padding: 4px 0;
border-right: 1px solid var(--border);
}
.console {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
min-height: 0;
}
.consoleOutput {
flex: 1;
min-height: 0;
overflow: auto;
position: relative;
padding: 6px 14px;
font-family: var(--font-mono);
font-size: var(--fs-ui);
line-height: 18px;
white-space: pre-wrap;
word-break: break-word;
-webkit-user-select: text;
cursor: default;
-webkit-user-select: text;
user-select: text;
outline: none;
color: var(--fg);
}
.consoleInner {
position: relative;
width: 100%;
cursor: text;
}
/* Find matches in the console output. */
.findMatch {
border-radius: 2px;
}
.link {
color: var(--link);
text-decoration: underline;
text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
text-underline-offset: 2px;
cursor: pointer;
}
.link:hover {
color: var(--link-hover);
text-decoration-color: currentColor;
}
/* Soft-Wrap off: long lines scroll horizontally. */
.noWrap {
white-space: pre;
word-break: normal;
}
.out {
position: absolute;
top: 0;
left: 0;
min-width: 100%;
color: var(--fg);
}
.cat-stderr {
color: var(--danger);
}
.cat-console,
.cat-system {
color: var(--fg-subtle);
}
.cat-important {
color: var(--accent);
}
.cat-input {
color: var(--fg-secondary);
}
.cat-result {
color: var(--fg-emphasis);
}
.repl {
margin: 0 14px 2px;
border-bottom: 0;
border-top: 1px solid var(--border);
}
.serviceView {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
.serviceView > * {
flex: 1;
min-height: 0;
}