Merge pull request #1 from pc-v2/pc-v2_-moz-gtk-csd-reversed-placement

Add _moveWindowButtons support for -moz-gtk-csd-reversed-placement
This commit is contained in:
pc-v2
2024-11-16 10:15:48 +07:00
committed by GitHub

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