Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix the multi-plugin menu button alignment hack
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Mar 25, 2016
1 parent ac6d8ba commit 1fb2aab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
@@ -1,10 +1,11 @@
export default Ember.View.extend({
tagName: 'li',
classNames: ['messages-button-wrapper'],

didInsertElement: function() {
var $parentEl = this.get('parentView').$()
var $parentEl = this.$().parent()
if (!$parentEl.hasClass('icons')) {
$parentEl.addClass('plugin-menu-icons')
}
}

})
3 changes: 3 additions & 0 deletions assets/stylesheets/quick.scss
@@ -1,5 +1,8 @@
.plugin-menu-icons {
float: left;
> li {
display: inline-block;
}
}

.messages-button-wrapper {
Expand Down

0 comments on commit 1fb2aab

Please sign in to comment.