From 1c6fa0ec7dad75246aecdb3aa2faeacff6d828ed Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 11 Apr 2020 20:10:27 +0800 Subject: [PATCH] theme: fix img width the width of image should take padding into account --- theme/default/static/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/default/static/style.css b/theme/default/static/style.css index b9ed0d0..5d8799d 100644 --- a/theme/default/static/style.css +++ b/theme/default/static/style.css @@ -275,7 +275,7 @@ h5 { .post img, .content img { - max-width: 100%; + max-width: calc(100% - 10px); object-fit: contain; }