Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: FieldGrid lays out a row of form fields on one grid for the forms that each hand-rolled it

Classifier settings, the try-out target row and classification rows, and the
schedule cadence each wrote their own flex row with its own flex basis and
gap. FieldGrid is one grid with equal columns and one gap, FieldGridFull
spans a row, and the four forms use it, so a lone last field keeps its column
width and the columns share their edges in every row.
This commit is contained in:
iris 2026-11-06 19:53:31 +01:00 • committed by mara
commit a9dd276935

View file

@ -1,6 +1,6 @@
/* The form fills its card; fields stack with the page's usual gap. The
cadence controls sit in one wrapping row so "repeats / every / unit /
starts at" read as one sentence on a wide card and stack on a narrow one. */
cadence controls sit on a `FieldGrid`, so "repeats / every / unit / starts
at" read as one row on a wide card and stack on a narrow one. */
.ui-schedule-form {
display: flex;
flex-direction: column;
@ -20,15 +20,6 @@
max-height: none;
overflow-y: visible;
}
.ui-schedule-form-cadence {
display: flex;
flex-wrap: wrap;
gap: 0.75em;
}
.ui-schedule-form-cadence > .ui-form-field {
width: auto;
flex: 1 1 9em;
}
.ui-schedule-form-hint {
font-size: 0.85em;
}