From 2261b13f46f296a58f2ed592e30171be91f85ea7 Mon Sep 17 00:00:00 2001 From: zasbu <136494048+zasbu@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:13:13 +1100 Subject: [PATCH 1/2] Make map cards more compact --- web/e2e/maps-cards.e2e.ts | 2 +- web/src/features/maps/MapCard.module.css | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/e2e/maps-cards.e2e.ts b/web/e2e/maps-cards.e2e.ts index e1d6398..41c1a80 100644 --- a/web/e2e/maps-cards.e2e.ts +++ b/web/e2e/maps-cards.e2e.ts @@ -212,7 +212,7 @@ test("cards keep complete names and long times inside at every breakpoint", asyn (element) => getComputedStyle(element).gridTemplateColumns.split(" ").length, ); - expect(columns).toBe(width === 1920 ? 4 : 3); + expect(columns).toBe(width === 1920 ? 5 : 4); } } }); diff --git a/web/src/features/maps/MapCard.module.css b/web/src/features/maps/MapCard.module.css index 803e6f2..6c72370 100644 --- a/web/src/features/maps/MapCard.module.css +++ b/web/src/features/maps/MapCard.module.css @@ -4,8 +4,7 @@ } .cover { - aspect-ratio: 5 / 2; - min-block-size: calc(var(--spacing) * 32); + min-block-size: calc(var(--spacing) * 20); } .preview { @@ -97,8 +96,14 @@ } } -@container (min-width: 88rem) { +@container (min-width: 76rem) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } } + +@container (min-width: 92rem) { + .cards { + grid-template-columns: repeat(5, minmax(0, 1fr)); + } +} From 90fe769882ba88ea07032cbd033e79cfbea2d7cd Mon Sep 17 00:00:00 2001 From: zasbu <136494048+zasbu@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:16:42 +1100 Subject: [PATCH 2/2] Give map card images more height --- web/src/features/maps/MapCard.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/features/maps/MapCard.module.css b/web/src/features/maps/MapCard.module.css index 6c72370..9184898 100644 --- a/web/src/features/maps/MapCard.module.css +++ b/web/src/features/maps/MapCard.module.css @@ -4,7 +4,7 @@ } .cover { - min-block-size: calc(var(--spacing) * 20); + min-block-size: calc(var(--spacing) * 36); } .preview {