Skip to content

Commit f8836e2

Browse files
committed
fine tune
1 parent ef76480 commit f8836e2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

web_src/css/modules/label.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
gap: .25rem;
88
min-width: 0;
99
max-width: 100%;
10-
line-height: 1;
1110
background: var(--color-label-bg);
1211
color: var(--color-label-text);
13-
padding: 0.3em 0.5em;
12+
padding: 2px 6px;
1413
font-size: var(--font-size-label);
1514
font-weight: var(--font-weight-medium);
1615
border: 0 solid transparent;

web_src/css/repo.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ td .commit-summary {
631631

632632
.repository.view.issue .comment-list .timeline-item.with-labels-list .ui.label {
633633
margin: 0 2px;
634+
line-height: var(--line-height-default);
634635
}
635636

636637
@media (max-width: 767.98px) {
@@ -1570,10 +1571,10 @@ If the labels-list itself needs some layouts, use extra classes or "tw" helpers.
15701571
max-width: 100%; /* for ellipsis */
15711572
}
15721573

1573-
.labels-list .label,
1574-
.scope-parent > .label {
1575-
padding: 0 6px;
1574+
.labels-list .ui.label {
15761575
min-height: 20px;
1576+
padding-top: 0;
1577+
padding-bottom: 0;
15771578
}
15781579

15791580
/* Scoped labels with different colors on left and right */

web_src/css/repo/issue-label.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
flex-wrap: wrap;
3737
gap: 0.5em;
3838
justify-content: end;
39+
align-items: center;
3940
}
4041

4142
.issue-label-list > .item .label-operation a {

0 commit comments

Comments
 (0)