From 14ed095e8203b0b7a804b755e2771fc5394ccf34 Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 10 Sep 2020 12:09:42 +0800 Subject: [PATCH] fix: fixed image default display 100% bug --- source/css/layout/common/markdown.styl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/css/layout/common/markdown.styl b/source/css/layout/common/markdown.styl index c2695a7..a2abf83 100644 --- a/source/css/layout/common/markdown.styl +++ b/source/css/layout/common/markdown.styl @@ -69,7 +69,7 @@ h1, h2, h3, h4, h5, h6 { - // TODO: ... + // TODO: ... } h1 { @@ -125,9 +125,10 @@ img { + box-sizing: initial; padding: 2px; margin: 2px 0; - width: 100%; + max-width: 100%; border: 1px solid var(--border-color); }