Skip to content

Commit

Permalink
Popover positionning and classes
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jan 21, 2017
1 parent e5cfd7b commit 6829b2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/files/css/files.css
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,10 @@ html.ie8 #controls .button.new {
font-weight: 300;
top: 100%;
margin-top: 4px;
width: 120px;
margin-left: 7px;
margin-top: 38px;
z-index: 1001;
}

.newFileMenu .filenameform {
Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -2943,7 +2943,7 @@
this._newFileMenu = new OCA.Files.NewFileMenu({
fileList: this
});
this._newButton.append(this._newFileMenu.$el);
$('.actions').append(this._newFileMenu.$el);
}
this._newFileMenu.showAt($target);

Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/newfilemenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
var NewFileMenu = OC.Backbone.View.extend({
tagName: 'div',
// Menu is opened by default because it's rendered on "add-button" click
className: 'newFileMenu popovermenu bubble menu open menu-center',
className: 'newFileMenu popovermenu bubble menu open menu-left',

events: {
'click .menuitem': '_onClickAction'
Expand Down

0 comments on commit 6829b2b

Please sign in to comment.