[MM-38649] Put top bar in a BrowserView (#1758)

* [MM-38649] Tab bar as BrowserView POC

* Fixes for Mac

* Linux fixes

* Lint fix

* Make view full height

* Fix for macOS getting stuck when dragging

* Lint fix
This commit is contained in:
Devin Binnie
2021-09-27 13:29:38 -04:00
committed by GitHub
parent 9c5e4880ea
commit c914903df9
6 changed files with 79 additions and 41 deletions

View File

@@ -142,14 +142,7 @@ function createTemplate(config: Config) {
return 'Ctrl+Shift+I';
})(),
click(item: Electron.MenuItem, focusedWindow?: WebContents) {
if (focusedWindow) {
// toggledevtools opens it in the last known position, so sometimes it goes below the browserview
if (focusedWindow.isDevToolsOpened()) {
focusedWindow.closeDevTools();
} else {
focusedWindow.openDevTools({mode: 'detach'});
}
}
WindowManager.openAppWrapperDevTools(focusedWindow);
},
}, {
label: 'Developer Tools for Current Tab',