mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-22 23:35:37 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user