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 {
177 white-space: nowrap;177 white-space: nowrap;
178}178}
179/* Multi-label dropdown on the new-issue form. */179/* 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}
180.label-dropdown {187.label-dropdown {
181 display: inline-block;188 display: inline-block;
182 position: relative;189 position: relative;
183 margin-bottom: 0.5rem;190 margin-bottom: 0.5rem;
184}191}
192.new-issue-actions .label-dropdown {
193 margin-bottom: 0;
194}
185.label-dropdown > summary {195.label-dropdown > summary {
186 list-style: none;196 list-style: none;
187 width: auto;197 width: auto;
crates/web/src/issues.rs +5 −4
@@ -184,11 +184,12 @@ pub(crate) async fn new_form(
184 input type="text" id="title" name="title" required autofocus;184 input type="text" id="title" name="title" required autofocus;
185 label for="body" { "Description" }185 label for="body" { "Description" }
186 textarea id="body" name="body" rows="8" placeholder="Markdown supported" {}186 textarea id="body" name="body" rows="8" placeholder="Markdown supported" {}
187 @if !repo_labels.is_empty() {187 div class="new-issue-actions" {
188 label { "Labels" }188 button class="btn btn-primary inline-btn" type="submit" { "Create " (kind.noun) }
189 (label_dropdown(&repo_labels))189 @if !repo_labels.is_empty() {
190 (label_dropdown(&repo_labels))
191 }
190 }192 }
191 button class="btn btn-primary" type="submit" { "Create " (kind.noun) }
192 }193 }
193 }194 }
194 };195 };