mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-23 09:04:03 +09:00
Fix font-size in inline code comment preview (#35209)
Some checks failed
Some checks failed
Previously, when writing a inline code comment, the markup preview would have incorrect font size of 16px. This fixes it to 14px and also combines similar CSS rules into one. I'm not a fan of this selector complexity, but it seems like a necessity because standalone markup files render at 16px while comments render at 14px. --------- Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
.markup {
|
||||
overflow: hidden;
|
||||
font-size: 16px;
|
||||
font-size: 14px; /* 14px for comments, overridden to 16px for .file-view below. */
|
||||
line-height: 1.5 !important;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
@ -318,6 +318,7 @@ In markup content, we always use bottom margin for all elements */
|
||||
|
||||
.file-view.markup {
|
||||
padding: 1em 2em;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.file-view.markup:has(.file-not-rendered-prompt) {
|
||||
|
Reference in New Issue
Block a user