From fe9e8e3c9dc83dc59bbd00c24466e4e3330fe8ad Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 29 Apr 2025 18:40:55 +0200 Subject: fix image sizing when using size-* classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- links/main.css | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'links') diff --git a/links/main.css b/links/main.css index 78f0f12..d186725 100644 --- a/links/main.css +++ b/links/main.css @@ -126,8 +126,8 @@ main hr { } main img { - width: 100%; - max-width: 700px; + max-width: 100%; + object-fit: contain; } main>q { @@ -344,17 +344,14 @@ ul.nobull li { } .size-s { - width: auto; max-height: 150px; } .size-m { - width: auto; max-height: 220px; } .size-l { - width: auto; max-height: 400px; } -- cgit 1.4.1