about summary refs log tree commit diff
path: root/links
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-04-29 18:40:55 +0200
committerRobert Günzler <r@gnzler.io>2025-04-29 18:40:55 +0200
commitfe9e8e3c9dc83dc59bbd00c24466e4e3330fe8ad (patch)
tree546a577757b364de71f60f4bc9f368b0521e889b /links
parentfd2d54998cbd68e28c1b544dff1526590c518186 (diff)
downloadsite-fe9e8e3c9dc83dc59bbd00c24466e4e3330fe8ad.tar.gz
fix image sizing when using size-* classes
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'links')
-rw-r--r--links/main.css7
1 files changed, 2 insertions, 5 deletions
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;
 }