fix(settings): keep match-type chip compact in download root rule rows

.mapping-controls is a 3-column grid (1fr 1fr auto) built for the path
mapping rows; rule rows have 4 children, so the chip stretched to fill
its 1fr track and the action buttons wrapped to an implicit second row.
Give .download-root-rule-controls an explicit 4-column template and pin
the chip to its natural width.
This commit is contained in:
Will Miao
2026-10-10 07:53:31 +08:00
parent dce7da3d58
commit 18a296e054
@@ -695,7 +695,15 @@
margin-top: var(--space-1);
}
/* Rule rows have 4 children (chip, summary toggle, root select, actions);
override the 3-column .mapping-controls grid so the chip keeps its
natural width and the actions stay on the same row. */
.download-root-rule-controls {
grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto;
}
.download-root-rule-match-chip {
justify-self: start;
flex-shrink: 0;
padding: 2px 8px;
border-radius: var(--border-radius-xs);