Skip to content

Commit ea9ebbb

Browse files
committed
fix margin
1 parent 433d9cf commit ea9ebbb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

templates/repo/issue/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
{{end}}
1616

17-
<div class="list-header">
17+
<div class="list-header flex-text-block">
1818
{{template "repo/issue/search" .}}
1919
<a class="ui small button" href="{{.RepoLink}}/labels">{{ctx.Locale.Tr "repo.labels"}}</a>
2020
<a class="ui small button" href="{{.RepoLink}}/milestones">{{ctx.Locale.Tr "repo.milestones"}}</a>

web_src/css/base.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,11 @@ table th[data-sortt-desc] .svg {
11551155
min-width: 0;
11561156
}
11571157

1158+
.flex-text-block > .ui.button,
1159+
.flex-text-inline > .ui.button {
1160+
margin: 0; /* fomantic buttons have default margin, when we use them in a flex container with gap, we do not need these margins */
1161+
}
1162+
11581163
/* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content
11591164
the "!important" is necessary to override Fomantic UI menu item styles, meanwhile we should keep the "hidden" items still hidden */
11601165
.ui.dropdown .menu.flex-items-menu > .item:not(.hidden, .filtered, .tw-hidden) {

web_src/css/repo/list-header.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
gap: .5rem;
66
}
77

8-
.list-header > .ui.button {
9-
margin: 0;
10-
}
11-
128
.list-header-search {
139
display: flex;
1410
flex: 1;

0 commit comments

Comments
 (0)