From 783503aece7fca9e26f7e849b0e7478aba976acb Mon Sep 17 00:00:00 2001 From: wuwenbin Date: Sat, 13 Sep 2025 13:58:43 +0800 Subject: [PATCH] fix: optimize markdown preview height --- frontend/src/css/mdPreview.css | 4 +--- frontend/src/views/files/Editor.vue | 18 +----------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/frontend/src/css/mdPreview.css b/frontend/src/css/mdPreview.css index bf2863f6..7d6cab86 100644 --- a/frontend/src/css/mdPreview.css +++ b/frontend/src/css/mdPreview.css @@ -1,6 +1,4 @@ .md_preview { - overflow-y: auto; - max-height: 80vh; padding: 1rem; border: 1px solid #000; font-size: 20px; @@ -9,5 +7,5 @@ #preview-container { overflow: auto; - max-height: 80vh; /* Match the max-height of md_preview for scrolling */ + flex: 1; } diff --git a/frontend/src/views/files/Editor.vue b/frontend/src/views/files/Editor.vue index 3408fb97..8db6252b 100644 --- a/frontend/src/views/files/Editor.vue +++ b/frontend/src/views/files/Editor.vue @@ -1,5 +1,5 @@