Skip to content

Commit

Permalink
Apply min-height in wiki only on preview pane (go-gitea#28687)
Browse files Browse the repository at this point in the history
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 <git@fl1tzi.com>
  • Loading branch information
2 people authored and fuxiaohei committed Jan 17, 2024
1 parent 1a5efa3 commit db7d42f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web_src/css/repo/wiki.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit db7d42f

Please sign in to comment.