File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -768,46 +768,20 @@ html.ie8 #controls .button.new {
768768}
769769
770770.newFileMenu {
771- width : 200px ;
772- margin-left : -56px ;
773- margin-top : 25px ;
771+ font-weight : 300 ;
772+ top : 100% ;
773+ margin-top : 4px ;
774+ min-width : 100px ;
775+ margin-left : 7px ;
774776 z-index : 1001 ;
775777}
776778
777- .newFileMenu .menuitem {
778- white-space : nowrap;
779- overflow : hidden;
780- }
781- .newFileMenu .popovermenu a .menuitem ,
782- .newFileMenu .popovermenu label .menuitem ,
783- .newFileMenu .popovermenu .menuitem {
784- padding : 0 ;
785- margin : 0 ;
786- }
787-
788- .newFileMenu .popovermenu a .menuitem .active {
789- opacity : 1 ;
790- -ms-filter : "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" ;
791- filter : alpha (opacity=100);
792- }
793-
794- .newFileMenu .bubble : after {
795- left : 75px ;
796- right : auto;
797- }
798- .newFileMenu .bubble : before {
799- left : 75px ;
800- right : auto;
801- }
802-
803779.newFileMenu .filenameform {
804780 display : inline-block;
805781}
806782
807783.newFileMenu .filenameform input {
808- width : 100% ;
809- box-sizing : border-box;
810- margin : -2px 0 ;
784+ margin : 2px 0 ;
811785}
812786
813787# fileList .popovermenu .action {
@@ -835,6 +809,9 @@ html.ie8 #controls .button.new {
835809 height : 15px ;
836810}
837811
812+ .app-files .actions .button .new {
813+ position : relative;
814+ }
838815.app-files .actions .button .new .icon {
839816 margin-bottom : 2px ;
840817}
Original file line number Diff line number Diff line change 29512951 this . _newFileMenu = new OCA . Files . NewFileMenu ( {
29522952 fileList : this
29532953 } ) ;
2954- $ ( 'body ' ) . append ( this . _newFileMenu . $el ) ;
2954+ $ ( '.actions ' ) . append ( this . _newFileMenu . $el ) ;
29552955 }
29562956 this . _newFileMenu . showAt ( $target ) ;
29572957
Original file line number Diff line number Diff line change 3838 */
3939 var NewFileMenu = OC . Backbone . View . extend ( {
4040 tagName : 'div' ,
41- className : 'newFileMenu popovermenu bubble hidden open menu' ,
41+ // Menu is opened by default because it's rendered on "add-button" click
42+ className : 'newFileMenu popovermenu bubble menu open menu-left' ,
4243
4344 events : {
4445 'click .menuitem' : '_onClickAction'
235236 */
236237 showAt : function ( $target ) {
237238 this . render ( ) ;
238- var targetOffset = $target . offset ( ) ;
239- this . $el . css ( {
240- left : targetOffset . left ,
241- top : targetOffset . top + $target . height ( )
242- } ) ;
243- this . $el . removeClass ( 'hidden' ) ;
244-
245239 OC . showMenu ( null , this . $el ) ;
246240 }
247241 } ) ;
You can’t perform that action at this time.
0 commit comments