Skip to content

Commit

Permalink
Fix button height bug with in menus
Browse files Browse the repository at this point in the history
When `.button` is not a direct descendant of `.menu` (for example, when it is wrapped), it would not get this style applied, which caused inconsistent heights of buttons that were wrapped vs. ones that weren't. Removed the `>` operator to fix this.

Refs:

- go-gitea/gitea#3091
- https://try.gitea.io/silverwind/testcopy/commits/branch/master
  • Loading branch information
silverwind authored Dec 5, 2017
1 parent 796d2f6 commit 01d07eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
Button
---------------*/

.ui.menu:not(.vertical) .item > .button {
.ui.menu:not(.vertical) .item .button {
position: relative;
top: @buttonOffset;
margin: @buttonMargin;
Expand Down

0 comments on commit 01d07eb

Please sign in to comment.