From 5afccd36163ca18991b88b00e6fa114d98f6f71d Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 14 May 2023 15:16:59 +0700 Subject: [PATCH] Fix images being clipped when there's not enough space for them https://pixwhile.zangetsu.kaizoku.cyou/artworks/61001755 https://pixwhile.zangetsu.kaizoku.cyou/artworks/77622196 --- routes/css.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/css.cpp b/routes/css.cpp index 50aebe4..65ecaf1 100644 --- a/routes/css.cpp +++ b/routes/css.cpp @@ -28,8 +28,8 @@ static const constexpr char css[] = R"EOF( font-family: sans-serif; } img { - object-fit: cover; max-width: 100%; + height: auto; /* https://stackoverflow.com/a/17183996 */ } .center { text-align: center;