File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ const launchButtons: JupyterFrontEndPlugin<void> = {
7777 const { commands, shell } = app ;
7878 const baseUrl = PageConfig . getBaseUrl ( ) ;
7979 const trans = translator . load ( 'notebook' ) ;
80- const menubar = new MenuBar ( ) ;
80+ const overflowOptions = {
81+ overflowMenuOptions : { overflowMenuVisible : false , title : '' }
82+ } ;
83+ const menubar = new MenuBar ( overflowOptions ) ;
8184 const switcher = new Menu ( { commands } ) ;
8285 switcher . title . label = trans . __ ( 'Interface' ) ;
8386 menubar . addMenu ( switcher ) ;
@@ -134,7 +137,7 @@ const launchButtons: JupyterFrontEndPlugin<void> = {
134137 'Notebook' ,
135138 'interfaceSwitcher' ,
136139 panel => {
137- const menubar = new MenuBar ( ) ;
140+ const menubar = new MenuBar ( overflowOptions ) ;
138141 menubar . addMenu ( switcher ) ;
139142 menubar . addClass ( 'jp-InterfaceSwitcher' ) ;
140143 return menubar ;
Original file line number Diff line number Diff line change @@ -80,7 +80,10 @@ const createNew: JupyterFrontEndPlugin<void> = {
8080 const { commands } = app ;
8181 const trans = translator . load ( 'notebook' ) ;
8282
83- const menubar = new MenuBar ( ) ;
83+ const overflowOptions = {
84+ overflowMenuOptions : { overflowMenuVisible : false , title : '' }
85+ } ;
86+ const menubar = new MenuBar ( overflowOptions ) ;
8487 const newMenu = new Menu ( { commands } ) ;
8588 newMenu . title . label = trans . __ ( 'New' ) ;
8689 newMenu . title . icon = caretDownIcon ;
@@ -103,7 +106,7 @@ const createNew: JupyterFrontEndPlugin<void> = {
103106 FILE_BROWSER_FACTORY ,
104107 'new-dropdown' ,
105108 ( browser : FileBrowser ) => {
106- const menubar = new MenuBar ( ) ;
109+ const menubar = new MenuBar ( overflowOptions ) ;
107110 menubar . addMenu ( newMenu ) ;
108111 menubar . addClass ( 'jp-DropdownMenu' ) ;
109112 return menubar ;
You can’t perform that action at this time.
0 commit comments