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
This commit is contained in:
blankie 2023-05-14 15:16:59 +07:00
parent 43446801b3
commit 5afccd3616
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -28,8 +28,8 @@ static const constexpr char css[] = R"EOF(
font-family: sans-serif; font-family: sans-serif;
} }
img { img {
object-fit: cover;
max-width: 100%; max-width: 100%;
height: auto; /* https://stackoverflow.com/a/17183996 */
} }
.center { .center {
text-align: center; text-align: center;