Файли
openidea/src/features/agents/Home.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

107 рядки
1.9 KiB
CSS

.home {
flex: 1;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24px 24px 12vh;
background: var(--bg-editor);
color: var(--fg);
}
.inner {
/* The same width as a running session's composer and conversation. */
width: min(var(--agent-conversation-width), 100%);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.fitWidth .inner {
width: 100%;
}
.heading {
margin: 0 0 10px;
font-size: 18px;
font-weight: 600;
text-align: center;
color: var(--fg-strong);
text-wrap: balance;
}
/* Under the box: the project and where the agent works. */
.where {
display: flex;
flex-wrap: wrap;
align-items: center;
/* The chips' own padding spaces them. */
gap: var(--space-0-5);
padding: 0 2px;
font-size: var(--fs-small);
}
/* The current branch, read-only: same height and colour as the pickers beside it. */
.branch {
min-width: 0;
}
/* The row's own gaps space "on" and "from"; the note's padding is for the lines below. */
.where .note {
padding: 0;
}
.note,
.warning {
margin: 0;
padding: 0 4px;
font-size: var(--fs-small);
color: var(--fg-subtle);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.warning {
color: var(--danger);
}
.docked {
justify-content: flex-end;
padding: 16px 12px 12px;
}
.docked .inner {
gap: var(--space-2);
}
.docked .where {
flex-wrap: nowrap;
min-width: 0;
}
.docked .projectPicker,
.docked .projectChip {
flex: 0 1 auto;
min-width: 0;
max-width: 30%;
}
.docked .branch,
.docked .basePicker {
order: 1;
flex: 0 1 auto;
min-width: 0;
}
.docked .isolation {
order: 2;
flex: 0 1 auto;
min-width: 0;
max-width: 45%;
margin-left: auto;
}
.notes {
display: flex;
flex-direction: column;
gap: var(--space-2);
height: 0;
}
.docked .notes {
height: auto;
}
.docked .notes:empty {
display: none;
}