Each row in the read-only configuration view was ~45px tall but the text was only ~20px — empty space outweighed content by ~2:1, making the page hard to scan. The combined effect of `gap: var(--sp-2)` on the flex container and `padding: var(--sp-2) 0` on each row doubled the breathing room. Tables on the same page (Repositories, Providers) already use the target density; configuration rows now match them. Scope the override to `.cfg-section` descendants because the Workflows "Start work" form reuses `.cfg-rows` for its input fields (form.cfg-rows, no .cfg-row children) and would otherwise lose its 8px inter-field gap. The form is unaffected: the override only matches when an ancestor carries .cfg-section. Rows go from ~45px to ~25px, with the border carrying the visual rhythm instead of doubled padding.
61 lines
1.2 KiB
CSS
61 lines
1.2 KiB
CSS
/* Configuration-only styles. */
|
|
|
|
.cfg-section {
|
|
margin-bottom: var(--sp-4);
|
|
}
|
|
|
|
.cfg-subhead {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
color: var(--fg-muted);
|
|
margin: var(--sp-4) 0 var(--sp-2);
|
|
}
|
|
|
|
.cfg-subhead:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* The .cfg-rows / .cfg-row class pair is shared with the Workflows
|
|
"Start work" form (form.cfg-rows, no .cfg-row children). The form
|
|
needs the 8px gap and `var(--sp-2) 0` padding for breathing room
|
|
between inputs; the Configuration page reads as dense metadata where
|
|
the border alone carries the rhythm. Keep the general rules for the
|
|
form and override under .cfg-section. */
|
|
.cfg-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-2);
|
|
}
|
|
|
|
.cfg-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: var(--sp-4);
|
|
padding: var(--sp-2) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.cfg-section .cfg-rows {
|
|
gap: 0;
|
|
}
|
|
|
|
.cfg-section .cfg-row {
|
|
padding: var(--sp-1) 0;
|
|
}
|
|
|
|
.cfg-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.cfg-label {
|
|
font-size: var(--text-sm);
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.cfg-value {
|
|
font-size: var(--text-sm);
|
|
color: var(--fg);
|
|
text-align: right;
|
|
}
|