mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Add _moveWindowButtons support for -moz-gtk-csd-reversed-placement
I add 'or' operator to set window buttons if -moz-gtk-csd-reversed-placement is true Signed-off-by: pc-v2 <58063311+pc-v2@users.noreply.github.com>
This commit is contained in:
@@ -71,7 +71,7 @@ export var ZenCustomizableUI = new (class {
|
||||
_moveWindowButtons(window) {
|
||||
const windowControls = window.document.getElementsByClassName('titlebar-buttonbox-container');
|
||||
const toolboxIcons = window.document.getElementById('zen-sidebar-top-buttons-customization-target');
|
||||
if (window.AppConstants.platform === 'macosx') {
|
||||
if (window.AppConstants.platform === 'macosx'|| matchMedia('(-moz-gtk-csd-reversed-placement)').matches) {
|
||||
for (let i = 0; i < windowControls.length; i++) {
|
||||
if (i === 0) {
|
||||
toolboxIcons.prepend(windowControls[i]);
|
||||
|
Reference in New Issue
Block a user