Skip to content

Commit

Permalink
Tightened up spacing on drop down menu - Fixes mui#17
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Nguyen committed Nov 9, 2014
1 parent ca700e1 commit 3f1173c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions docs/dist/js/menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ var Menu = React.createClass({

componentDidMount: function() {
var $el = $(this.getDOMNode()),
menuWidth = $el.width()

menuWidth = KeyLine.getIncrementalDim(menuWidth);
menuWidth = KeyLine.getIncrementalDim($el.width());

//Update the menu width
//We need to remove the transition in order to set the
Expand Down
5 changes: 3 additions & 2 deletions docs/dist/less/components/drop-down-menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@
.mui-menu {
.mui-menu-item {
transition: none;
padding-right: (@icon-size + (@desktop-gutter-less*2));
padding-right: (@icon-size + @desktop-gutter-less + @desktop-gutter-mini);
height: @desktop-drop-down-menu-item-height;
line-height: @desktop-drop-down-menu-item-height;

white-space: nowrap;

&:hover {
background-color: @menu-item-hover-color;
}
Expand Down

0 comments on commit 3f1173c

Please sign in to comment.