0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 15:53:07 -05:00

Preview: set font-size on preview content

- Backport of #2349
- When previewing the content in a review, no font size was set. This
resulted in the previewed content being bigger than other text and
therefor creating an noticable inconsistency.
- Set the font size of the previewed content, 14px, this is consistent
with how the content would be rendered.
- `comment-code-cloud` is the class used for the review boxes.
`.ui.tab.markup` means it only applies to the preview tab.

(cherry picked from commit b1aabbf174)
This commit is contained in:
Gusted 2024-02-14 23:01:35 +01:00
parent 45c0fa4905
commit a904558380
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -153,6 +153,10 @@
min-height: 168px; min-height: 168px;
} }
.comment-code-cloud .ui.tab.markup {
font-size: 14px;
}
.comment-code-cloud .ui.tabular.menu { .comment-code-cloud .ui.tabular.menu {
margin: 0.5em; margin: 0.5em;
} }