Skip to content

Commit

Permalink
Reduce padding on user profile submenu to fit in one line by default …
Browse files Browse the repository at this point in the history
…(english)
  • Loading branch information
kdumontnu committed Feb 11, 2021
1 parent 65733d2 commit d3ffa88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/user/profile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</div>
</div>
<div class="ui eleven wide column">
<div class="ui secondary stackable pointing menu">
<div class="ui secondary stackable pointing tight menu">
<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}}">
{{svg "octicon-repo"}} {{.i18n.Tr "user.repositories"}}
</a>
Expand Down
7 changes: 6 additions & 1 deletion web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ a.muted:hover,
color: var(--color-text);

.svg {
margin-right: 0.35em;
margin-right: .35em;
}
}

Expand Down Expand Up @@ -388,6 +388,11 @@ a.muted:hover,
background: var(--color-active);
}

.ui.secondary.menu.tight .item {
padding-left: .85714286em;
padding-right: .85714286em;
}

.ui.menu .dropdown.item .menu {
background: var(--color-menu);
}
Expand Down

0 comments on commit d3ffa88

Please sign in to comment.