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..9184898 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) * 36); } .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)); + } +}