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 {
2219}2219}
2220.release-form-actions {2220.release-form-actions {
2221 display: flex;2221 display: flex;
2222 gap: 0.6rem;2222 align-items: center;
2223 gap: 0.75rem;
2223 margin-top: 1rem;2224 margin-top: 1rem;
2224}2225}
2225/* Notifications inbox. */2226/* Notifications inbox. */
crates/web/src/releases.rs +5 −5
@@ -333,11 +333,6 @@ fn release_form(
333 textarea id="rl-body" name="body" rows="10" placeholder="Describe this release (markdown supported)" {333 textarea id="rl-body" name="body" rows="10" placeholder="Describe this release (markdown supported)" {
334 (existing.and_then(|r| r.body.as_deref()).unwrap_or(""))334 (existing.and_then(|r| r.body.as_deref()).unwrap_or(""))
335 }335 }
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 }
341 div class="release-form-actions" {336 div class="release-form-actions" {
342 button class="btn btn-primary inline-btn" type="submit" name="action" value="publish" {337 button class="btn btn-primary inline-btn" type="submit" name="action" value="publish" {
343 @if existing.is_some() { "Update release" } @else { "Publish release" }338 @if existing.is_some() { "Update release" } @else { "Publish release" }
@@ -345,6 +340,11 @@ fn release_form(
345 @if existing.is_none_or(|r| r.is_draft) {340 @if existing.is_none_or(|r| r.is_draft) {
346 button class="btn inline-btn" type="submit" name="action" value="draft" { "Save draft" }341 button class="btn inline-btn" type="submit" name="action" value="draft" { "Save draft" }
347 }342 }
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 }
348 }348 }
349 }349 }
350 }350 }