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:
parent
c37205e8f5
commit
a9dd276935
1 changed files with 99 additions and 57 deletions
|
|
@ -1,23 +1,11 @@
|
|||
/* The settings form: the fields wrap in a row, the provider fields on a row of
|
||||
* their own under the ACP runtime, then the save action. */
|
||||
/* The settings form: the fields sit on a `FieldGrid`, the provider fields in a
|
||||
* group of their own under the ACP runtime, then the save action. */
|
||||
.ui-classifier-settings {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
/* One grid for every group of fields: each field has the same width and the
|
||||
same edges at any width, and a label that wraps cannot push one input lower
|
||||
than its neighbour's. */
|
||||
.ui-classifier-settings-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
|
||||
gap: 0.75em;
|
||||
}
|
||||
/* A field that needs the whole row (a URL, a model name). */
|
||||
.ui-classifier-settings-wide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
/* The provider fields, under their own heading. */
|
||||
.ui-classifier-settings-group {
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue