From 8f0baefe5dadc929fe7456c36c8b205e96f228f0 Mon Sep 17 00:00:00 2001 From: Fl1tzi Date: Tue, 2 Jan 2024 23:44:45 +0100 Subject: [PATCH] Apply min-height in wiki only on preview pane (#1993) 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. --- 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 {