fix: change position from absolute to fixed in zen-compact-mode.css and update sidebar visibility logic in ToolbarContextMenu

This commit is contained in:
mr. m
2025-04-03 20:39:17 +02:00
parent 683bb7eb41
commit 97cbd76e8e
2 changed files with 7 additions and 5 deletions

View File

@@ -49,7 +49,7 @@
padding: 0 0 0 var(--zen-toolbox-padding) !important; padding: 0 0 0 var(--zen-toolbox-padding) !important;
&:not([animate='true']) { &:not([animate='true']) {
position: absolute; position: fixed;
z-index: 10; z-index: 10;
transition: transition:
left 0.15s ease, left 0.15s ease,

View File

@@ -1,13 +1,15 @@
diff --git a/browser/components/customizableui/ToolbarContextMenu.sys.mjs b/browser/components/customizableui/ToolbarContextMenu.sys.mjs diff --git a/browser/components/customizableui/ToolbarContextMenu.sys.mjs b/browser/components/customizableui/ToolbarContextMenu.sys.mjs
index af22f766a052372a68faca139161cccbf0d768f0..ceff0576321f880c71ce301e537f4d03ccca8a73 100644 index af22f766a052372a68faca139161cccbf0d768f0..199591ca0609e8902e84a87baf50acc29f84ee3a 100644
--- a/browser/components/customizableui/ToolbarContextMenu.sys.mjs --- a/browser/components/customizableui/ToolbarContextMenu.sys.mjs
+++ b/browser/components/customizableui/ToolbarContextMenu.sys.mjs +++ b/browser/components/customizableui/ToolbarContextMenu.sys.mjs
@@ -241,7 +241,7 @@ export var ToolbarContextMenu = { @@ -240,8 +240,8 @@ export var ToolbarContextMenu = {
// Show/hide sidebar and vertical tabs menu items
let sidebarRevampEnabled = Services.prefs.getBoolPref("sidebar.revamp"); let sidebarRevampEnabled = Services.prefs.getBoolPref("sidebar.revamp");
let showSidebarActions = let showSidebarActions =
["tabbrowser-tabs", "sidebar-button"].includes(toolbarItem?.id) || - ["tabbrowser-tabs", "sidebar-button"].includes(toolbarItem?.id) ||
- toolbarItem?.localName == "toolbarspring"; - toolbarItem?.localName == "toolbarspring";
+ toolbarItem?.localName == "toolbarspring" && false; + (["tabbrowser-tabs", "sidebar-button"].includes(toolbarItem?.id) ||
+ toolbarItem?.localName == "toolbarspring") && false;
let toggleVerticalTabsItem = document.getElementById( let toggleVerticalTabsItem = document.getElementById(
"toolbar-context-toggle-vertical-tabs" "toolbar-context-toggle-vertical-tabs"
); );