fabrica

hanna/fabrica

style(web): move the pre-release checkbox beside the release buttons

dd59dcb · hanna committed on 2026-07-26

Relocate the pre-release toggle into the actions row (right of Publish /
Save draft) and shorten its label to "Pre-release".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
2 files changed · +7 −6UnifiedSplit
assets/base.css +2 −1
@@ -2219,7 +2219,8 @@ pre.code {
22192219 }
22202220 .release-form-actions {
22212221 display: flex;
2222- gap: 0.6rem;
2222+ align-items: center;
2223+ gap: 0.75rem;
22232224 margin-top: 1rem;
22242225 }
22252226 /* Notifications inbox. */
crates/web/src/releases.rs +5 −5
@@ -333,11 +333,6 @@ fn release_form(
333333 textarea id="rl-body" name="body" rows="10" placeholder="Describe this release (markdown supported)" {
334334 (existing.and_then(|r| r.body.as_deref()).unwrap_or(""))
335335 }
336- label class="checkbox" {
337- input type="checkbox" name="prerelease" value="1"
338- checked[existing.is_some_and(|r| r.is_prerelease)];
339- " This is a pre-release"
340- }
341336 div class="release-form-actions" {
342337 button class="btn btn-primary inline-btn" type="submit" name="action" value="publish" {
343338 @if existing.is_some() { "Update release" } @else { "Publish release" }
@@ -345,6 +340,11 @@ fn release_form(
345340 @if existing.is_none_or(|r| r.is_draft) {
346341 button class="btn inline-btn" type="submit" name="action" value="draft" { "Save draft" }
347342 }
343+ label class="checkbox" {
344+ input type="checkbox" name="prerelease" value="1"
345+ checked[existing.is_some_and(|r| r.is_prerelease)];
346+ " Pre-release"
347+ }
348348 }
349349 }
350350 }