From 26fc4831df00cbf95b554425997df5d71807c8a0 Mon Sep 17 00:00:00 2001 From: imzbf Date: Tue, 24 Oct 2023 10:50:49 +0800 Subject: [PATCH] fix: scroller is still here when has no preview area --- packages/MdEditor/layouts/Content/index.tsx | 19 +++++++++++++------ packages/MdEditor/styles/codeMirror.less | 8 ++++++-- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/packages/MdEditor/layouts/Content/index.tsx b/packages/MdEditor/layouts/Content/index.tsx index a50f6d66..2f17b8c1 100644 --- a/packages/MdEditor/layouts/Content/index.tsx +++ b/packages/MdEditor/layouts/Content/index.tsx @@ -27,18 +27,25 @@ export default defineComponent({ return () => { return ( -
+
-
+ {(props.setting.htmlPreview || props.setting.preview) && ( +
+ )}