Fix preview thumbnails being squished

https://pixwhile.zangetsu.kaizoku.cyou/artworks/108749543?preview=1

AFAIK, this does not interfere with 42da969ac5
and 5afccd3616
This commit is contained in:
blankie 2023-06-09 13:45:57 +07:00
parent c0a424615c
commit edbd11e075
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,7 @@ static const constexpr char css[] = R"EOF(
img {
max-width: 100%;
height: auto; /* https://stackoverflow.com/a/17183996 */
object-fit: cover;
}
.center {
text-align: center;
@ -112,7 +113,6 @@ static const constexpr char css[] = R"EOF(
.user-cover {
width: 100%;
height: 50vh;
object-fit: cover;
margin-bottom: 1em;
}