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 {
1060.mirror-error {1060.mirror-error {
1061 color: var(--fb-danger);1061 color: var(--fb-danger);
1062}1062}
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
1064/* Settings: a left tab rail and the active tab's content. */1073/* Settings: a left tab rail and the active tab's content. */
1065.settings-layout {1074.settings-layout {
crates/web/src/repo.rs +2 −0
@@ -1140,6 +1140,7 @@ fn mirror_section(id: &str, csrf: &str, mirrors: &[store::Mirror]) -> Markup {
1140 }1140 }
1141 }1141 }
1142 }1142 }
1143 div class="mirror-add" {
1143 h3 { "Add a push mirror" }1144 h3 { "Add a push mirror" }
1144 form method="post" action=(format!("/repo-settings/{id}/mirror")) {1145 form method="post" action=(format!("/repo-settings/{id}/mirror")) {
1145 input type="hidden" name="_csrf" value=(csrf);1146 input type="hidden" name="_csrf" value=(csrf);
@@ -1161,6 +1162,7 @@ fn mirror_section(id: &str, csrf: &str, mirrors: &[store::Mirror]) -> Markup {
1161 label class="checkbox" { input type="checkbox" name="sync_on_push" value="1"; " Sync when commits are pushed" }1162 label class="checkbox" { input type="checkbox" name="sync_on_push" value="1"; " Sync when commits are pushed" }
1162 }1163 }
1163 }1164 }
1165 }
1164 }1166 }
1165 }1167 }
1166 }1168 }
data/fabrica/tmp/.git-credentials +1 −0
@@ -0,0 +1 @@
1https://hanna:158e1fcd1e2c560b1855a834492b37bb7c45d2ce@git.gay