Skip to content

Commit 92711b0

Browse files
earl-warrenFl1tzi
andauthored
Apply min-height in wiki only on preview pane (#28687)
In the commit 5a56f96 (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 <[email protected]>
1 parent 54acf7b commit 92711b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web_src/css/repo/wiki.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
.repository.wiki .markup {
1515
overflow: visible;
16-
min-height: 340px;
16+
}
17+
18+
.repository.wiki .markup[data-tab-panel="markdown-previewer"] {
19+
min-height: 340px; /* This height matches the markdown editor's height */
1720
}
1821

1922
.repository.wiki .wiki-content-parts .markup {

0 commit comments

Comments
 (0)