aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css
diff options
context:
space:
mode:
authorEarl Warren <109468362+earl-warren@users.noreply.github.com>2024-01-04 03:48:55 +0100
committerGitHub <noreply@github.com>2024-01-04 02:48:55 +0000
commit92711b001e8c1433eaf7833d33dd73beb32f846c (patch)
tree1a0a89c37b08a06a960e7bf2ec1b65fd86cc644e /web_src/css
parent54acf7b0d4b57907a6d8a2ac470744f185adf0b5 (diff)
downloadgitea-92711b001e8c1433eaf7833d33dd73beb32f846c.tar.gz
gitea-92711b001e8c1433eaf7833d33dd73beb32f846c.zip
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 <git@fl1tzi.com>
Diffstat (limited to 'web_src/css')
-rw-r--r--web_src/css/repo/wiki.css5
1 files changed, 4 insertions, 1 deletions
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 {