fix: Fixed right side compact mode not opening when element separation is 0 on windows and linux, b=(no-bug), c=compact-mode

This commit is contained in:
mr. m
2025-05-02 12:04:01 +02:00
parent 2132f44812
commit 58646d1d08

View File

@@ -5,6 +5,16 @@
*/
/* All overrides for compact mode go here */
:root {
--zen-compact-mode-offset: 0.1px;
@media not (-moz-platform: macos) {
&[sizemode='maximized'][zen-right-side='true'] {
--zen-compact-mode-offset: 1px;
}
}
}
:root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
%include ../tabs/zen-tabs/vertical-tabs-topbuttons-fix.css
@media -moz-pref('zen.view.compact.hide-tabbar') or -moz-pref('zen.view.use-single-toolbar') {
@@ -76,7 +86,7 @@
}
&:not([zen-right-side='true']) #navigator-toolbox {
left: calc(-1 * var(--actual-zen-sidebar-width) + 0.1px);
left: calc(-1 * var(--actual-zen-sidebar-width) + var(--zen-compact-mode-offset));
}
/* When we have multiple toolbars and the top-toolbar is NOT being hidden,
@@ -96,7 +106,7 @@
&[zen-right-side='true'] {
& #navigator-toolbox:not([animate='true']) {
right: calc(-1 * var(--actual-zen-sidebar-width) + 0.1px);
right: calc(-1 * var(--actual-zen-sidebar-width) + var(--zen-compact-mode-offset));
}
& .browserSidebarContainer {