mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 19:42:09 +01:00
92711b001e
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>
71 lines
1.5 KiB
CSS
71 lines
1.5 KiB
CSS
.repository.wiki .wiki-pages-list tr:hover {
|
|
background-color: var(--color-hover);
|
|
}
|
|
|
|
.repository.wiki .wiki-pages-list .wiki-git-entry {
|
|
margin-left: 10px;
|
|
display: none;
|
|
}
|
|
|
|
.repository.wiki .wiki-pages-list tr:hover .wiki-git-entry {
|
|
display: inline-block;
|
|
}
|
|
|
|
.repository.wiki .markup {
|
|
overflow: visible;
|
|
}
|
|
|
|
.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 {
|
|
border: 1px solid var(--color-secondary);
|
|
padding: 1em;
|
|
margin-top: 1em;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-main.with-sidebar {
|
|
float: left;
|
|
width: 80%;
|
|
max-width: calc(100% - 150px - 1em); /* match the min-width of .wiki-content-sidebar */
|
|
}
|
|
|
|
.repository.wiki .wiki-content-sidebar {
|
|
float: right;
|
|
width: calc(20% - 1em);
|
|
min-width: 150px;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-sidebar .ui.message.unicode-escape-prompt p {
|
|
display: none;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-footer {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-toc ul {
|
|
margin: 0;
|
|
list-style: none;
|
|
padding: 5px 0 5px 1em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-toc ul ul {
|
|
border-left: 1px var(--color-secondary);
|
|
border-left-style: dashed;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.repository.wiki #clone-panel #repo-clone-url {
|
|
width: 160px;
|
|
}
|
|
.repository.wiki .wiki-content-main.with-sidebar,
|
|
.repository.wiki .wiki-content-sidebar {
|
|
float: none;
|
|
width: 100%;
|
|
min-width: unset;
|
|
max-width: unset;
|
|
}
|
|
}
|