fabrica

hanna/fabrica

style(web): move Create button left of the label selector, drop Labels label

6a7ff04 · hanna committed on 2026-07-25

Put the Create issue/PR button and the label dropdown on one row (button first)
and remove the now-redundant "Labels" field label.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
2 files changed · +15 −4UnifiedSplit
assets/base.css +10 −0
@@ -177,11 +177,21 @@ code, pre, .mono {
177177 white-space: nowrap;
178178 }
179179 /* Multi-label dropdown on the new-issue form. */
180+.new-issue-actions {
181+ display: flex;
182+ align-items: center;
183+ gap: 0.6rem;
184+ flex-wrap: wrap;
185+ margin-top: 1rem;
186+}
180187 .label-dropdown {
181188 display: inline-block;
182189 position: relative;
183190 margin-bottom: 0.5rem;
184191 }
192+.new-issue-actions .label-dropdown {
193+ margin-bottom: 0;
194+}
185195 .label-dropdown > summary {
186196 list-style: none;
187197 width: auto;
crates/web/src/issues.rs +5 −4
@@ -184,11 +184,12 @@ pub(crate) async fn new_form(
184184 input type="text" id="title" name="title" required autofocus;
185185 label for="body" { "Description" }
186186 textarea id="body" name="body" rows="8" placeholder="Markdown supported" {}
187- @if !repo_labels.is_empty() {
188- label { "Labels" }
189- (label_dropdown(&repo_labels))
187+ div class="new-issue-actions" {
188+ button class="btn btn-primary inline-btn" type="submit" { "Create " (kind.noun) }
189+ @if !repo_labels.is_empty() {
190+ (label_dropdown(&repo_labels))
191+ }
190192 }
191- button class="btn btn-primary" type="submit" { "Create " (kind.noun) }
192193 }
193194 }
194195 };