Skip to content

Commit e0c1ff1

Browse files
committed
Reaction picker display improvements
- Remove overly thin font-width on counter - Add hover effect on reaction picker - Change colors on arc-green to green to match the theme
1 parent e429c11 commit e0c1ff1

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
@@ -2340,9 +2340,10 @@
23402340

23412341
> .item {
23422342
float: left;
2343-
padding: .5rem !important;
2343+
padding: .25rem !important;
2344+
margin: .25rem;
23442345
font-size: 1.5em;
2345-
width: 45px;
2346+
width: 39px;
23462347
left: 13px;
23472348

23482349
img.emoji {
@@ -2356,18 +2357,17 @@
23562357
padding: 0;
23572358
display: flex;
23582359

2359-
.ui.label,
2360-
.ui.label.visible {
2360+
.ui.label {
23612361
max-height: 40px;
2362-
padding: .4rem .8rem;
2362+
padding: 7px 18px;
23632363
display: flex !important;
23642364
align-items: center;
23652365
border: 0;
23662366
border-right: 1px solid;
23672367
border-radius: 0;
23682368
margin: 0;
23692369
font-size: 14px;
2370-
font-weight: 100;
2370+
font-weight: normal;
23712371
border-color: inherit !important;
23722372

23732373
&.disabled {
@@ -2388,11 +2388,22 @@
23882388
.select-reaction {
23892389
display: flex;
23902390
align-items: center;
2391-
padding: 0 .5rem;
2391+
padding: 0 14px;
23922392

23932393
&:not(.active) a {
23942394
display: none;
23952395
}
2396+
2397+
.item {
2398+
border-radius: 6px;
2399+
display: flex;
2400+
justify-content: center;
2401+
align-items: center;
2402+
}
2403+
2404+
.item:hover {
2405+
background: #4183c4;
2406+
}
23962407
}
23972408

23982409
&: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)