theme: fix img width

the width of image should take padding into account
This commit is contained in:
Peter Cai 2020-04-11 20:10:27 +08:00
parent 4cd4f72e25
commit 1c6fa0ec7d
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ h5 {
.post img,
.content img {
max-width: 100%;
max-width: calc(100% - 10px);
object-fit: contain;
}