fabrica

hanna/fabrica

style(web): separate the add-mirror form from the mirror list

3e22a0c · hanna committed on 2026-07-26

Wrap "Add a push mirror" in its own sub-section with a top divider and
spacing, so the configured-mirror list reads as a distinct block above it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
3 files changed · +12 −0UnifiedSplit
assets/base.css +9 −0
@@ -1060,6 +1060,15 @@ body.drawer-open .drawer-backdrop {
10601060 .mirror-error {
10611061 color: var(--fb-danger);
10621062 }
1063+/* Separate the "Add a push mirror" sub-form from the list of configured mirrors. */
1064+.mirror-add {
1065+ margin-top: 1.25rem;
1066+ padding-top: 1.25rem;
1067+ border-top: 1px solid var(--fb-border);
1068+}
1069+.mirror-add h3 {
1070+ margin-top: 0;
1071+}
10631072
10641073 /* Settings: a left tab rail and the active tab's content. */
10651074 .settings-layout {
crates/web/src/repo.rs +2 −0
@@ -1140,6 +1140,7 @@ fn mirror_section(id: &str, csrf: &str, mirrors: &[store::Mirror]) -> Markup {
11401140 }
11411141 }
11421142 }
1143+ div class="mirror-add" {
11431144 h3 { "Add a push mirror" }
11441145 form method="post" action=(format!("/repo-settings/{id}/mirror")) {
11451146 input type="hidden" name="_csrf" value=(csrf);
@@ -1161,6 +1162,7 @@ fn mirror_section(id: &str, csrf: &str, mirrors: &[store::Mirror]) -> Markup {
11611162 label class="checkbox" { input type="checkbox" name="sync_on_push" value="1"; " Sync when commits are pushed" }
11621163 }
11631164 }
1165+ }
11641166 }
11651167 }
11661168 }
data/fabrica/tmp/.git-credentials +1 −0
@@ -0,0 +1 @@
1+https://hanna:158e1fcd1e2c560b1855a834492b37bb7c45d2ce@git.gay