gh-13093: Fixed double seperator lines in context menu (gh-13094)

This commit is contained in:
mr. m
2026-04-05 10:54:15 +02:00
committed by GitHub
parent 8333c34124
commit 16d7caa98f
3 changed files with 12 additions and 3 deletions

View File

@@ -1,7 +1,16 @@
diff --git a/browser/components/customizableui/ToolbarContextMenu.sys.mjs b/browser/components/customizableui/ToolbarContextMenu.sys.mjs
index d5fd707b98e4b163a624c97ff4a8f2574e0b0180..32360b11270d9dad4b83229428932e598f69e774 100644
index d5fd707b98e4b163a624c97ff4a8f2574e0b0180..a3ac939aa9133a678396c16bc6746444a3f3ac1f 100644
--- a/browser/components/customizableui/ToolbarContextMenu.sys.mjs
+++ b/browser/components/customizableui/ToolbarContextMenu.sys.mjs
@@ -183,7 +183,7 @@ export var ToolbarContextMenu = {
let showTabStripItems = toolbarItem?.id == "tabbrowser-tabs";
let isVerticalTabStripMenu =
- showTabStripItems && toolbarItem.parentElement.id == "vertical-tabs";
+ showTabStripItems && toolbarItem.parentElement.id == "TabsToolbar-customization-target";
if (aInsertPoint) {
aInsertPoint.hidden = isVerticalTabStripMenu;
@@ -243,10 +243,7 @@ export var ToolbarContextMenu = {
// Show/hide sidebar and vertical tabs menu items
let sidebarRevampEnabled = Services.prefs.getBoolPref("sidebar.revamp");

View File

@@ -233,6 +233,7 @@ window.gZenCompactModeManager = {
<menuitem id="zen-context-menu-compact-mode-hide-both" data-l10n-id="zen-toolbar-context-compact-mode-hide-both" type="radio" />
</menupopup>
</menu>
<menuseparator />
`);
const idToAction = {
@@ -247,7 +248,7 @@ window.gZenCompactModeManager = {
}
}
document.getElementById("toolbar-context-customize").before(fragment);
document.getElementById("toolbar-context-menu").prepend(fragment);
this.updateContextMenu();
},

View File

@@ -71,7 +71,6 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
document.getElementById("context_moveTabToGroup").before(contextMenuItems);
const contextMenuItemsToolbar = window.MozXULElement.parseXULToFragment(
`<menuitem id="zen-context-menu-new-folder-toolbar" data-l10n-id="zen-toolbar-context-new-folder"/>
<menuseparator />
<menu data-l10n-id="zen-panel-ui-live-folder-create" id="zen-panel-ui-live-folder-create">
<menupopup>
<menuitem