mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-27 17:54:17 +00:00
Refactor ZenStartup to update sidebar panel positioning for macOS
This commit is contained in:
@@ -133,10 +133,16 @@
|
||||
},
|
||||
|
||||
_moveWindowButtons() {
|
||||
const windowControls = document.getElementsByClassName('titlebar-buttonbox-container')[0];
|
||||
const windowControls = document.getElementsByClassName('titlebar-buttonbox-container');
|
||||
const toolboxIcons = document.getElementById('zen-sidebar-top-buttons-customization-target');
|
||||
if (AppConstants.platform === "macosx") {
|
||||
toolboxIcons.prepend(windowControls);
|
||||
for (let i = 0; i < windowControls.length; i++) {
|
||||
if (i === 0) {
|
||||
toolboxIcons.prepend(windowControls[i]);
|
||||
continue;
|
||||
}
|
||||
windowControls[i].remove();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user