From d8f027a088fcd39fc0852624194e2e310f57ccc2 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 15 May 2022 06:20:05 +0300 Subject: [PATCH] Set menubar margins only when native titlebar is disabled If native titlebar is enabled the rules would move tabs and navbar partially below native titlebar. Those rules are not needed anyway with native titlebar since window controls are in native titlebar. --- chrome/navbar_tabs_oneliner_tabs_on_left.css | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/chrome/navbar_tabs_oneliner_tabs_on_left.css b/chrome/navbar_tabs_oneliner_tabs_on_left.css index e2bfcec..8417ffd 100644 --- a/chrome/navbar_tabs_oneliner_tabs_on_left.css +++ b/chrome/navbar_tabs_oneliner_tabs_on_left.css @@ -27,11 +27,11 @@ Window controls will be all wrong without it :root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px;} :root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 44px; } -:root[uidensity=compact] #urlbar-container{ +:root[uidensity="compact"] #urlbar-container{ --urlbar-container-height: var(--uc-toolbar-height) !important; padding-block: 0 !important; } -:root[uidensity=compact] #urlbar{ +:root[uidensity="compact"] #urlbar{ --urlbar-toolbar-height: var(--uc-toolbar-height) !important; } @@ -41,9 +41,16 @@ Window controls will be all wrong without it #urlbar-container{ min-width:unset !important } } -#toolbar-menubar{ height: initial !important; } -#toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){ opacity: 0; pointer-events: none; } -#toolbar-menubar[inactive]{ margin-bottom: calc(0px - var(--uc-toolbar-height)) } +:root[tabsintitlebar] #toolbar-menubar{ + height: initial !important; +} +:root[tabsintitlebar] #toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){ + opacity: 0; + pointer-events: none; +} +:root[tabsintitlebar] #toolbar-menubar[inactive]{ + margin-bottom: calc(0px - var(--uc-toolbar-height)); +} #TabsToolbar > .titlebar-buttonbox-container, .titlebar-spacer[type="post-tabs"]{ @@ -97,4 +104,4 @@ Window controls will be all wrong without it #urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; } /* Fix customization view */ -#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; } \ No newline at end of file +#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }