Simplify emoji rendering (#34048) (#34049)

Backport #34048 by silverwind

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot 2025-03-28 18:30:29 +08:00 committed by GitHub
parent b3516767fb
commit eee4a752a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 13 deletions

View File

@ -1225,14 +1225,7 @@ table th[data-sortt-desc] .svg {
box-shadow: 0 0 0 1px var(--color-secondary) inset; box-shadow: 0 0 0 1px var(--color-secondary) inset;
} }
.emoji { /* for "image" emojis like ":git:" ":gitea:" and ":github:" (see CUSTOM_EMOJIS config option) */
font-size: 1.25em;
line-height: var(--line-height-default);
font-style: normal !important;
font-weight: var(--font-weight-normal) !important;
vertical-align: -0.075em;
}
.emoji img { .emoji img {
border-width: 0 !important; border-width: 0 !important;
margin: 0 !important; margin: 0 !important;

View File

@ -337,11 +337,6 @@
padding-right: 28px; padding-right: 28px;
} }
.markup .emoji {
max-width: none;
vertical-align: text-top;
}
.markup span.frame { .markup span.frame {
display: block; display: block;
overflow: hidden; overflow: hidden;