gh-13121: Fixed compact mode not hiding with translations (gh-13143)

This commit is contained in:
mr. m
2026-04-08 17:04:48 +02:00
committed by GitHub
parent 73ae2fa258
commit 561a03421f
6 changed files with 18 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/customizableui/ToolbarContextMenu.sys.mjs b/browser/components/customizableui/ToolbarContextMenu.sys.mjs
index d5fd707b98e4b163a624c97ff4a8f2574e0b0180..a3ac939aa9133a678396c16bc6746444a3f3ac1f 100644
index d5fd707b98e4b163a624c97ff4a8f2574e0b0180..b5d7e84c3567e83b95a6493e8333d3036dc88f36 100644
--- a/browser/components/customizableui/ToolbarContextMenu.sys.mjs
+++ b/browser/components/customizableui/ToolbarContextMenu.sys.mjs
@@ -183,7 +183,7 @@ export var ToolbarContextMenu = {
@@ -23,3 +23,11 @@ index d5fd707b98e4b163a624c97ff4a8f2574e0b0180..a3ac939aa9133a678396c16bc6746444
let toggleVerticalTabsItem = document.getElementById(
"toolbar-context-toggle-vertical-tabs"
@@ -267,6 +264,7 @@ export var ToolbarContextMenu = {
document.getElementById("sidebarRevampSeparator").hidden =
!showSidebarActions || isVerticalTabStripMenu;
document.getElementById("customizationMenuSeparator").hidden =
+ true ||
toolbarItem?.id == "tabbrowser-tabs" ||
(toolbarItem?.localName == "toolbarspring" &&
!CustomizationHandler.isCustomizing()) ||

View File

@@ -26,6 +26,12 @@ class nsHasPolyfill {
if (selected?.tagName?.toLowerCase() === "menu") {
return null;
}
if (selected) {
gZenCompactModeManager.log(
`Selector "${selector}" exists for: `,
element
);
}
return selected;
});
const { exists: shouldExist = true } = descendantSelectors;

View File

@@ -177,7 +177,6 @@ window.gZenCompactModeManager = {
const attributes = [
"panelopen",
"open",
"opening",
"breakout-extend",
"zen-floating-urlbar",
];
@@ -186,7 +185,7 @@ window.gZenCompactModeManager = {
[
{
selector:
":where([panelopen='true'], [open='true'], [showing='true'], [breakout-extend='true'])" +
":where([panelopen='true'], [open='true'], [breakout-extend='true'])" +
":not(#urlbar[zen-floating-urlbar='true']):not(tab):not(.zen-compact-mode-ignore)",
},
],
@@ -198,7 +197,7 @@ window.gZenCompactModeManager = {
[
{
selector:
":where([panelopen='true'], [open='true'], [showing='true'], #urlbar:focus-within, [breakout-extend='true'])" +
":where([panelopen='true'], [open='true'], [breakout-extend='true'])" +
":not(.zen-compact-mode-ignore)",
},
],

View File

@@ -1,6 +0,0 @@
<!--
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<svg width="1920" height="1080" viewBox="0 0 1920 1080" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_23_113)"><rect width="1920" height="1080" fill="url(#paint0_linear_23_113)"/><circle cx="960" cy="1080" r="740" stroke="#F2F0E3" stroke-width="120"/><circle cx="960" cy="1080" r="558.095" stroke="#F2F0E3" stroke-width="80"/><circle cx="960" cy="1080" r="386.19" stroke="#F2F0E3" stroke-width="60"/><circle cx="960" cy="1080" r="214.286" stroke="#F2F0E3" stroke-width="40"/></g><defs><linearGradient id="paint0_linear_23_113" x1="960" y1="0" x2="960" y2="1080" gradientUnits="userSpaceOnUse"><stop stop-color="#EA6E54"/><stop offset="1" stop-color="#D9664E"/></linearGradient><clipPath id="clip0_23_113"><rect width="1920" height="1080" fill="white"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 1023 B

View File

@@ -2,7 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
content/browser/zen-images/brand-header.svg (../../zen/images/brand-header.svg)
content/browser/zen-images/layouts/collapsed.png (../../zen/images/layouts/collapsed.png)
content/browser/zen-images/layouts/multiple-toolbar.png (../../zen/images/layouts/multiple-toolbar.png)
content/browser/zen-images/layouts/single-toolbar.png (../../zen/images/layouts/single-toolbar.png)

View File

@@ -20,7 +20,7 @@
"brandShortName": "Zen",
"brandFullName": "Zen Browser",
"release": {
"displayVersion": "1.19.7b",
"displayVersion": "1.19.8b",
"github": {
"repo": "zen-browser/desktop"
},