From ccfe7d0eeb561d177f9c6186fb06153ddf354411 Mon Sep 17 00:00:00 2001 From: Butter Cat Date: Sun, 7 Apr 2024 19:24:55 -0400 Subject: [PATCH] Make embedded images keep aspect ration when shrinking --- static/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/style.css b/static/style.css index 5e8236d..a85ab75 100644 --- a/static/style.css +++ b/static/style.css @@ -1177,11 +1177,13 @@ a.search_subreddit:hover { .comment img { max-width: 50%; + height: auto; } @media screen and (max-width: 500px) { .comment img { max-width: 80%; + height: auto; } }