Skip to content

Commit 0c0f049

Browse files
silverwindlunnyzeripath
authored
Reaction picker display improvements (#12576)
- Remove overly thin font-width on counter - Add hover effect on reaction picker - Change colors on arc-green to green to match the theme Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 1bf7b8d commit 0c0f049

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

web_src/less/_repository.less

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,9 +2345,10 @@
23452345

23462346
> .item {
23472347
float: left;
2348-
padding: .5rem !important;
2348+
padding: .25rem !important;
2349+
margin: .25rem;
23492350
font-size: 1.5em;
2350-
width: 45px;
2351+
width: 39px;
23512352
left: 13px;
23522353

23532354
img.emoji {
@@ -2361,18 +2362,17 @@
23612362
padding: 0;
23622363
display: flex;
23632364

2364-
.ui.label,
2365-
.ui.label.visible {
2365+
.ui.label {
23662366
max-height: 40px;
2367-
padding: .4rem .8rem;
2367+
padding: 7px 18px;
23682368
display: flex !important;
23692369
align-items: center;
23702370
border: 0;
23712371
border-right: 1px solid;
23722372
border-radius: 0;
23732373
margin: 0;
23742374
font-size: 14px;
2375-
font-weight: 100;
2375+
font-weight: normal;
23762376
border-color: inherit !important;
23772377

23782378
&.disabled {
@@ -2393,11 +2393,22 @@
23932393
.select-reaction {
23942394
display: flex;
23952395
align-items: center;
2396-
padding: 0 .5rem;
2396+
padding: 0 14px;
23972397

23982398
&:not(.active) a {
23992399
display: none;
24002400
}
2401+
2402+
.item {
2403+
border-radius: 6px;
2404+
display: flex;
2405+
justify-content: center;
2406+
align-items: center;
2407+
}
2408+
2409+
.item:hover {
2410+
background: #4183c4;
2411+
}
24012412
}
24022413

24032414
&:hover .select-reaction a {

web_src/less/themes/theme-arc-green.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,16 @@ a.ui.basic.green.label:hover {
704704
border-color: #26577b !important;
705705
}
706706

707+
.repository .segment.reactions .ui.label.basic.blue {
708+
color: #a0cc75 !important;
709+
background: #305020 !important;
710+
border-color: #404552 !important;
711+
}
712+
713+
.repository .segment.reactions .select-reaction .item:hover {
714+
background: #305020;
715+
}
716+
707717
.ui.menu .item > .label {
708718
background: #565454;
709719
}

0 commit comments

Comments
 (0)