fix(web): tighten library poster grid
ci / web (push) Successful in 1m17s
ci / rust (push) Successful in 2m2s
e2e / e2e (push) Failing after 3m20s

This commit is contained in:
Miguel Palhas
2026-08-26 22:38:53 +01:00
parent 9d2b818c52
commit 3f4c1ade3b
3 changed files with 73 additions and 50 deletions
+4 -17
View File
@@ -1480,11 +1480,11 @@ body {
border-color: var(--accent);
}
/* auto-fill keeps every tile the same width down to a phone, where three
narrow-but-legible columns beat two oversized ones */
/* Wider tiles give artwork its due without forcing a desktop-style grid onto
a phone; the slightly wider crop avoids a wall of overly tall posters. */
.deck-rows.grid-rows {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
gap: var(--space-4);
}
@@ -1517,7 +1517,7 @@ body {
/* the poster is framed evidence, like every other image on a panel */
.card-art {
display: block;
aspect-ratio: 2 / 3;
aspect-ratio: 18 / 25;
}
.card-poster {
@@ -1556,15 +1556,7 @@ body {
padding: var(--space-2);
}
.card-id {
display: flex;
align-items: baseline;
gap: var(--space-1);
min-width: 0;
}
.card-name {
flex: 1;
/* two clamped lines: a long title stays readable where a single
ellipsised line at tile width would not be */
display: -webkit-box;
@@ -1578,11 +1570,6 @@ body {
color: var(--ink);
}
.card-year {
flex: none;
font-size: var(--text-2xs);
}
.card-chips {
display: flex;
flex-wrap: wrap;