fix: streamline window button positioning and enhance CSS for zen UI layout

This commit is contained in:
mr. M
2024-12-09 18:52:31 +01:00
parent 35f9d6f72a
commit 5aecff2f1a
2 changed files with 24 additions and 6 deletions

View File

@@ -391,12 +391,8 @@ var gZenVerticalTabsManager = {
} else { } else {
navBar.append(windowButtons); navBar.append(windowButtons);
} }
} else { } else { // not windows styled buttons
if (isRightSide) { navBar.appendChild(windowButtons);
appContentNavbarContaienr.appendChild(windowButtons);
} else {
topButtons.prepend(windowButtons);
}
} }
} else if (!isSingleToolbar && isCompactMode) { } else if (!isSingleToolbar && isCompactMode) {
navBar.appendChild(windowButtons); navBar.appendChild(windowButtons);

View File

@@ -965,4 +965,26 @@
padding-left: var(--zen-element-separation); padding-left: var(--zen-element-separation);
} }
} }
:root:not([zen-right-side='true']):not([zen-sidebar-expanded='true'])[zen-window-buttons-reversed='true'] {
& #navigator-toolbox {
padding-top: var(--zen-toolbar-height);
}
& .titlebar-buttonbox-container {
margin-left: calc(-1 * var(--zen-toolbox-max-width)) !important;
}
& #zen-appcontent-wrapper {
overflow-x: visible;
}
& #zen-sidebar-top-buttons-customization-target {
padding-top: 0;
}
& #zen-appcontent-navbar-container {
padding-right: var(--zen-element-separation);
}
}
} }