Файли
openidea/src/features/debugger/memory/MemoryView.module.css
T
Mr0Bread 9a518e734b refactor(styles): put gap on the spacing scale (#3562)
Extends the 4px-grid spacing scale with --space-0-5 (2px), --space-1 (4px) and --space-1-5 (6px) and replaces the literal 2/4/6/8/12/16px gap, row-gap and column-gap values with the tokens; computed values are unchanged. src/styles/spacingScale.test.ts flags an on-scale literal gap.

Co-authored-by: Mr0Bread <[email protected]>
2026-11-15 23:59:47 +08:00

236 рядки
4.1 KiB
CSS

.root {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
min-height: 0;
/* Shorter than the class table and the instances pane at their smallest: scroll rather than overlap. */
overflow-y: auto;
}
.toolbar {
flex: none;
display: flex;
align-items: center;
gap: var(--space-2);
padding: 4px 8px;
border-bottom: 1px solid var(--border);
}
.filter {
flex: 0 1 240px;
min-width: 80px;
}
.banner,
.error {
flex: none;
padding: 4px 12px;
font-size: var(--fs-ui);
color: var(--fg);
border-bottom: 1px solid var(--border);
}
.banner {
background: var(--bg-feedback-warning);
border-bottom-color: var(--border-feedback-warning);
}
.error {
background: var(--bg-feedback-error);
border-bottom-color: var(--border-feedback-error);
-webkit-user-select: text;
user-select: text;
}
.note {
padding: 8px 12px;
color: var(--fg-subtle);
font-size: var(--fs-ui);
}
/* A row above the table: the table and the instances pane below it share what is left. */
.capture {
flex: none;
display: flex;
align-items: center;
gap: var(--space-3);
padding-block: 4px;
border-bottom: 1px solid var(--border);
}
.captureBar {
flex: 0 1 160px;
}
.table {
flex: 1;
/* Its header, three rows and the footer; the instances pane below gives way first. */
min-height: calc(2 * var(--h-row) + 3 * 22px);
/* Squeezed by the instances pane, it must not paint over it. */
overflow: hidden;
display: flex;
flex-direction: column;
--memory-columns: minmax(0, 1fr) 96px 72px 104px;
}
.noSizes {
--memory-columns: minmax(0, 1fr) 96px 72px;
}
.withRetained {
--memory-columns: minmax(0, 1fr) 96px 72px 104px 104px;
}
.noSizes.withRetained {
--memory-columns: minmax(0, 1fr) 96px 72px 104px;
}
.head,
.row {
display: grid;
grid-template-columns: var(--memory-columns);
align-items: center;
column-gap: var(--space-3);
width: 100%;
}
.head {
flex: none;
height: var(--h-row);
padding: 0 16px 0 14px;
border-bottom: 1px solid var(--border);
color: var(--fg-muted);
font-size: var(--fs-small);
}
.headCell {
display: flex;
min-width: 0;
}
.headCell button {
flex: 1;
display: flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
height: 100%;
padding: 0;
color: inherit;
font: inherit;
white-space: nowrap;
text-align: left;
}
.headCell button:hover {
color: var(--fg-strong);
}
.headCell button:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
.numeric button {
justify-content: flex-end;
text-align: right;
}
.sorted button {
color: var(--fg-strong);
}
.grid {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.headGroup {
flex: none;
}
.list {
flex: 1;
min-height: 0;
}
.row {
font-size: var(--fs-ui);
color: var(--fg);
}
.cell {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.className {
display: flex;
align-items: baseline;
gap: var(--space-2);
min-width: 0;
font-family: var(--font-mono);
}
.classText {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-strong);
}
.module {
flex: 1 100 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.ambiguous {
flex: none;
align-self: center;
color: var(--warning);
}
.rowButton {
flex: none;
align-self: center;
margin-left: auto;
opacity: 0;
}
/* Outranks `.iconButton:disabled`, which would show it on every row while the program runs. */
.row .rowButton:disabled {
opacity: 0;
}
.row:hover .rowButton,
:global([data-lead]) > .row .rowButton,
.rowButton:focus-visible {
opacity: 1;
}
.row:hover .rowButton:disabled,
:global([data-lead]) > .row .rowButton:disabled {
opacity: 0.4;
}
.num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.zero {
color: var(--fg-subtle);
}
.footer {
flex: none;
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: var(--space-3);
padding: 4px 12px;
border-top: 1px solid var(--border);
color: var(--fg-muted);
font-size: var(--fs-small);
}
.source {
color: var(--fg-subtle);
}