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
289 Ok(html! {289 Ok(html! {
290 div class="new-repo" {290 div class="new-repo" {
291 h1 { "New " (noun) }291 h1 { "New " (noun) }
292 div class="card" {292 p class="muted field-hint" { "Choose a repository." }
293 p class="muted field-hint" { "Choose a repository." }293 @if usable.is_empty() {
294 @if usable.is_empty() {294 div class="card" {
295 p class="muted" { "You have no repositories with " (noun) "s enabled." }295 p class="muted" { "You have no repositories with " (noun) "s enabled." }
296 } @else {296 }
297 ul class="repo-list" {297 } @else {
298 @for r in &usable {298 ul class="repo-list card" {
299 li {299 @for r in &usable {
300 a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } {300 li {
301 span class="repo-row-name" {301 a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } {
302 (icon(Icon::Box)) span { (r.path) }302 span class="repo-row-name" {
303 }303 (icon(Icon::Box)) span { (r.path) }
304 }304 }
305 }305 }
306 }306 }