From 92711b001e8c1433eaf7833d33dd73beb32f846c Mon Sep 17 00:00:00 2001 From: Earl Warren <109468362+earl-warren@users.noreply.github.com> Date: Thu, 4 Jan 2024 03:48:55 +0100 Subject: [PATCH] Apply min-height in wiki only on preview pane (#28687) In the commit 5a56f9699c (3.) the min-height was applied to all wiki elements. This resulted in huge blank spaces when viewing the wiki. This fixes this by only applying the min-height to the preview when editing. Refs: https://codeberg.org/forgejo/forgejo/pulls/2080 (cherry picked from commit 8f0baefe5dadc929fe7456c36c8b205e96f228f0) Co-authored-by: Fl1tzi --- web_src/css/repo/wiki.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_src/css/repo/wiki.css b/web_src/css/repo/wiki.css index 84af37fa22..1302e9cb5c 100644 --- a/web_src/css/repo/wiki.css +++ b/web_src/css/repo/wiki.css @@ -13,7 +13,10 @@ .repository.wiki .markup { overflow: visible; - min-height: 340px; +} + +.repository.wiki .markup[data-tab-panel="markdown-previewer"] { + min-height: 340px; /* This height matches the markdown editor's height */ } .repository.wiki .wiki-content-parts .markup {