From 993debf1dadaac373d415f3aa0aea809bbc41eda Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Sun, 7 May 2023 19:11:23 +0300 Subject: [PATCH] [editor] fix image max-height --- src/styles/app.scss | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/styles/app.scss b/src/styles/app.scss index ee5b68f0..af66552f 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -496,13 +496,23 @@ input[type='checkbox'] { } figure { - margin: 2em 0; -} + display: flex; + flex-direction: column; + width: fit-content; + gap: 16px; + margin: 2em auto; -figcaption { - @include font-size(1.2rem); + img { + display: block; + max-height: 90vh; + margin: auto; + } - color: #9fa1a7; + figcaption { + @include font-size(1.2rem); + + color: #9fa1a7; + } } .view-switcher {