Skip to content

Commit d3ffa88

Browse files
committed
Reduce padding on user profile submenu to fit in one line by default (english)
1 parent 65733d2 commit d3ffa88

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ a.muted:hover,
279279
color: var(--color-text);
280280

281281
.svg {
282-
margin-right: 0.35em;
282+
margin-right: .35em;
283283
}
284284
}
285285

@@ -388,6 +388,11 @@ a.muted:hover,
388388
background: var(--color-active);
389389
}
390390

391+
.ui.secondary.menu.tight .item {
392+
padding-left: .85714286em;
393+
padding-right: .85714286em;
394+
}
395+
391396
.ui.menu .dropdown.item .menu {
392397
background: var(--color-menu);
393398
}

0 commit comments

Comments
 (0)