Skip to content

Commit 7f2be67

Browse files
committed
fix labels
1 parent 16b5f3e commit 7f2be67

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

templates/repo/issue/view_content/comments.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
</div>
170170
{{else if eq .Type 7}}
171171
{{if or .AddedLabels .RemovedLabels}}
172-
<div class="timeline-item event with-labels-list" id="{{.HashTag}}">
172+
<div class="timeline-item event with-labels-list-inline" id="{{.HashTag}}">
173173
<span class="badge">{{svg "octicon-tag"}}</span>
174174
{{template "shared/user/avatarlink" dict "user" .Poster}}
175175
<span class="text grey muted-links">

web_src/css/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
--z-index-modal: 1001; /* modal dialog, hard-coded from Fomantic modal.css */
3636
--z-index-toast: 1002; /* should be larger than modal */
3737

38-
--font-size-label: 14px;
38+
--font-size-label: 12px;
3939
}
4040

4141
@media (min-width: 768px) and (max-width: 1200px) {

web_src/css/repo.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -629,11 +629,6 @@ td .commit-summary {
629629
border: 1px solid var(--color-light-border);
630630
}
631631

632-
.repository.view.issue .comment-list .timeline-item.with-labels-list .ui.label {
633-
margin: 0 2px;
634-
line-height: var(--line-height-default);
635-
}
636-
637632
@media (max-width: 767.98px) {
638633
.repository.view.issue .comment-list .timeline-item .ui.segments {
639634
margin-left: -2rem;
@@ -1577,6 +1572,15 @@ If the labels-list itself needs some layouts, use extra classes or "tw" helpers.
15771572
padding-bottom: 0;
15781573
}
15791574

1575+
.with-labels-list-inline .labels-list a > .ui.label {
1576+
margin-left: 0.25em;
1577+
}
1578+
1579+
.with-labels-list-inline .labels-list .ui.label {
1580+
line-height: var(--line-height-default);
1581+
}
1582+
1583+
15801584
/* Scoped labels with different colors on left and right */
15811585
.ui.label.scope-parent {
15821586
background: none !important;

0 commit comments

Comments
 (0)