fabrica

hanna/fabrica

style(web): trim the mirror settings section

96ce2bd · hanna committed on 2026-07-26

Remove the descriptive blurb and the "Add a push mirror" heading, and add
a little more top margin above the Add-push-mirror button.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
2 files changed · +3 −6UnifiedSplit
assets/base.css +3 −0
@@ -1069,6 +1069,9 @@ body.drawer-open .drawer-backdrop {
10691069 .mirror-add h3 {
10701070 margin-top: 0;
10711071 }
1072+.mirror-add .admin-form-actions {
1073+ margin-top: 1rem;
1074+}
10721075
10731076 /* Settings: a left tab rail and the active tab's content. */
10741077 .settings-layout {
crates/web/src/repo.rs +0 −6
@@ -1239,11 +1239,6 @@ fn mirror_section(id: &str, csrf: &str, mirrors: &[store::Mirror]) -> Markup {
12391239 section class="listing" {
12401240 h2 { "Mirror settings" }
12411241 div class="card" {
1242- p class="muted field-hint" {
1243- "Keep this repository in sync with another repository — push its commits, tags and branches out to a remote, or pull them in. Add an inbound (pull) mirror from the "
1244- a href="/new/migrate" { "Migrate from Git" }
1245- " page."
1246- }
12471242 @if mirrors.is_empty() {
12481243 p class="muted empty-note" { "No mirrors configured." }
12491244 } @else {
@@ -1281,7 +1276,6 @@ fn mirror_section(id: &str, csrf: &str, mirrors: &[store::Mirror]) -> Markup {
12811276 }
12821277 }
12831278 div class="mirror-add" {
1284- h3 { "Add a push mirror" }
12851279 form method="post" action=(format!("/repo-settings/{id}/mirror")) {
12861280 input type="hidden" name="_csrf" value=(csrf);
12871281 label for="m-url" { "Git remote repository URL" }