Skip to content

Commit 8baf5ca

Browse files
authored
Reduce emoji size (#12317)
* Reduce emoji size Rendering should now pretty much match GitHub with 1.25em. I verified that emojis don't increase the line height and removed unecessary size overrides because now all emojis should appear similar in relation to the font size. * fix reaction hover
1 parent a3afb88 commit 8baf5ca

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

web_src/less/_base.less

+4-19
Original file line numberDiff line numberDiff line change
@@ -1224,35 +1224,20 @@ table th[data-sortt-desc] {
12241224

12251225
.emoji,
12261226
.reaction {
1227-
font-size: 1.5em;
1228-
line-height: 1.2;
1227+
font-size: 1.25em;
1228+
line-height: 1;
12291229
font-style: normal !important;
12301230
font-weight: normal !important;
1231-
vertical-align: middle;
1232-
}
1233-
1234-
#issue-title > .emoji {
1235-
font-size: 1em;
1236-
}
1237-
1238-
.commit-summary > .emoji {
1239-
font-size: 1em;
1240-
}
1241-
1242-
.label > .emoji {
1243-
font-size: 1em;
1231+
vertical-align: -.075em;
12441232
}
12451233

1246-
.dropdown .emoji {
1247-
font-size: 1em;
1248-
}
12491234
.emoji img,
12501235
.reaction img {
12511236
border-width: 0 !important;
12521237
margin: 0 !important;
12531238
width: 1em !important;
12541239
height: 1em !important;
1255-
vertical-align: middle !important;
1240+
vertical-align: -.15em;
12561241
}
12571242

12581243
/* https://github.com/go-gitea/gitea/pull/11486 */

web_src/less/_repository.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,7 @@
23872387
.select-reaction {
23882388
display: flex;
23892389
align-items: center;
2390-
padding: .5rem;
2390+
padding: 0 .5rem;
23912391

23922392
&:not(.active) a {
23932393
display: none;

0 commit comments

Comments
 (0)