Skip to content

Commit d475d53

Browse files
authored
Fix svg spacing (#14638)
* Add right margin to icons in menu items * Reduce padding on user profile submenu to fit in one line by default (english)
1 parent 5e5b063 commit d475d53

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

templates/user/profile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</div>
8484
</div>
8585
<div class="ui eleven wide column">
86-
<div class="ui secondary stackable pointing menu">
86+
<div class="ui secondary stackable pointing tight menu">
8787
<a class='{{if and (ne .TabName "activity") (ne .TabName "following") (ne .TabName "followers") (ne .TabName "stars") (ne .TabName "projects")}}active{{end}} item' href="{{.Owner.HomeLink}}">
8888
{{svg "octicon-repo"}} {{.i18n.Tr "user.repositories"}}
8989
</a>

web_src/less/_base.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ a.muted:hover,
277277

278278
.ui.menu .item {
279279
color: var(--color-text);
280+
281+
.svg {
282+
margin-right: .35em;
283+
}
280284
}
281285

282286
.ui.menu .item > .label {
@@ -381,6 +385,11 @@ a.muted:hover,
381385
background: var(--color-active);
382386
}
383387

388+
.ui.secondary.menu.tight .item {
389+
padding-left: .85714286em;
390+
padding-right: .85714286em;
391+
}
392+
384393
.ui.menu .dropdown.item .menu {
385394
background: var(--color-menu);
386395
}

0 commit comments

Comments
 (0)