fabrica

hanna/fabrica

style(web): tidy the repo chooser list

586b489 · hanna committed on 2026-07-25

Use the listing-card row style for the new-issue/PR repo chooser so it no longer
draws a stray divider under the last repo or double the row padding.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
1 files changed · +11 −11UnifiedSplit
crates/web/src/pages.rs +11 −11
@@ -289,18 +289,18 @@ async fn repo_chooser(state: &AppState, user: &User, seg: &str, noun: &str) -> A
289289 Ok(html! {
290290 div class="new-repo" {
291291 h1 { "New " (noun) }
292- div class="card" {
293- p class="muted field-hint" { "Choose a repository." }
294- @if usable.is_empty() {
292+ p class="muted field-hint" { "Choose a repository." }
293+ @if usable.is_empty() {
294+ div class="card" {
295295 p class="muted" { "You have no repositories with " (noun) "s enabled." }
296- } @else {
297- ul class="repo-list" {
298- @for r in &usable {
299- li {
300- a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } {
301- span class="repo-row-name" {
302- (icon(Icon::Box)) span { (r.path) }
303- }
296+ }
297+ } @else {
298+ ul class="repo-list card" {
299+ @for r in &usable {
300+ li {
301+ a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } {
302+ span class="repo-row-name" {
303+ (icon(Icon::Box)) span { (r.path) }
304304 }
305305 }
306306 }