From 1872b26efe3383d95000df0b956f92e7c3043538 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 2 Feb 2026 23:35:15 -0800 Subject: perf(images): Optimise cover images for LCP and CLS --- src/lib/List/covers.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lib/List/covers.css') diff --git a/src/lib/List/covers.css b/src/lib/List/covers.css index c83b984e..0993a5c8 100644 --- a/src/lib/List/covers.css +++ b/src/lib/List/covers.css @@ -9,6 +9,10 @@ background-size: cover; background-position: center; border-radius: 8px; + aspect-ratio: 46 / 65; + width: 100%; + height: auto; + object-fit: cover; } .cover-title { @@ -58,11 +62,12 @@ } .cover-container { - /* overflow: hidden; */ display: flex; justify-content: center; align-items: center; border-radius: 8px; + aspect-ratio: 46 / 65; + overflow: hidden; } button { -- cgit v1.2.3