From 56c475c77923c237e0307d221409d37cff1845ad Mon Sep 17 00:00:00 2001 From: hole-thu Date: Tue, 8 Sep 2020 15:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=9B=BE=E7=89=87=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common.css | 9 +++------ src/Common.js | 19 ++++++------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/src/Common.css b/src/Common.css index e73ad05..65a715d 100644 --- a/src/Common.css +++ b/src/Common.css @@ -59,14 +59,11 @@ margin-left: .15rem; } -.img-link { - display: inline-block; -} - - -.img-link img { +.ext-img { max-width: 100%; max-height: 2000px; + display: block; + margin: 0 auto; } .left-container .img-link img { diff --git a/src/Common.js b/src/Common.js index 0db432d..2075cec 100644 --- a/src/Common.js +++ b/src/Common.js @@ -132,19 +132,12 @@ export class HighlightedMarkdown extends Component { shouldProcessNode: (node) => node.name === 'img', processNode(node, index) { return ( - - {node.alt} - + {node.alt} ); }, },