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:
pc-v2
2024-11-16 10:11:26 +07:00
committed by GitHub
parent 499781baf1
commit 597f7dbeb8

View File

@@ -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]);