Skip to content

Commit 50a9727

Browse files
silverwindzeripathtechknowlogick
authored
Tweak reaction buttons (#11496)
- Vertical centering using flexbox - Very slightly decreased size of the boxes Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
1 parent 6ccd19e commit 50a9727

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

web_src/less/_repository.less

+9-9
Original file line numberDiff line numberDiff line change
@@ -2197,9 +2197,12 @@
21972197
padding: 0;
21982198
display: flex;
21992199

2200-
.ui.label {
2200+
.ui.label,
2201+
.ui.label.visible {
22012202
max-height: 40px;
2202-
padding: 9px 15px 7px;
2203+
padding: .4rem .8rem;
2204+
display: flex !important;
2205+
align-items: center;
22032206
border: 0;
22042207
border-right: 1px solid;
22052208
border-radius: 0;
@@ -2220,20 +2223,17 @@
22202223
}
22212224

22222225
.reaction-count {
2223-
margin-left: 4px;
2226+
margin-left: .5rem;
22242227
}
22252228

22262229
.select-reaction {
2227-
float: left;
2228-
padding: .6em;
2229-
line-height: 21px;
2230+
display: flex;
2231+
align-items: center;
2232+
padding: .5rem;
22302233

22312234
&:not(.active) a {
22322235
display: none;
22332236
}
2234-
> svg {
2235-
vertical-align: middle;
2236-
}
22372237
}
22382238

22392239
&:hover .select-reaction a {

0 commit comments

Comments
 (0)