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

@ -27,6 +27,7 @@ import { ApiErrorPanel } from "@hive/shared/api-error-panel.js";
import { readApiError, type ProblemDetails } from "@hive/shared/api-error.js";
import { ActionRow } from "../../ui/action-row/ActionRow.js";
import { Button } from "../../ui/button/Button.js";
import { FieldGrid } from "../../ui/field-grid/FieldGrid.js";
import { ConfirmDialog } from "../../ui/confirm-dialog/ConfirmDialog.js";
import { Disclosure } from "../../ui/disclosure/Disclosure.js";
import { ExternalLink } from "../../ui/external-link/ExternalLink.js";
@ -332,7 +333,7 @@ export function ReviewTryOut() {
the repo's rules.
</p>
<form class="ui-tryout-form" onSubmit={(e) => void run(e)}>
<div class="ui-tryout-target">
<FieldGrid class="ui-tryout-target">
<TextField
id="tryout-repo"
label="repo"
@ -358,7 +359,7 @@ export function ReviewTryOut() {
>
{loadingRules ? "loading…" : "load the repo's rules"}
</Button>
</div>
</FieldGrid>
{repoChoicesError ? (
<ApiErrorPanel
context="the repos with an open PR could not be listed"