fix: Fixed overflowed extensions not opening, p=#10818, c=common

This commit is contained in:
mr. m
2025-10-15 11:37:31 +02:00
committed by GitHub
parent 4f8df007e7
commit 127e11fe1f
4 changed files with 7 additions and 28 deletions

8
package-lock.json generated
View File

@@ -21,7 +21,7 @@
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-react-hooks": "^5.2.0",
"formal-git": "^1.2.8",
"formal-git": "^1.2.9",
"globals": "^16.3.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
@@ -3387,9 +3387,9 @@
}
},
"node_modules/formal-git": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/formal-git/-/formal-git-1.2.8.tgz",
"integrity": "sha512-ZGJbnKs4ANaxq3Dr3znRwZTdxP+F1AfEzkiEjCGBIf31xDcJ8StLWPI87/H/8KY801NWw9dc6qoraZzTSH5IyA==",
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/formal-git/-/formal-git-1.2.9.tgz",
"integrity": "sha512-EksDGPXBHz/jyxGt4zvXqDptjCnLYyATI1mb5/kEsc6vuruHu1QCjXarGFdkN8WkfFH0UImoJlvhz3HwwwcKsA==",
"dev": true,
"license": "ISC",
"bin": {

View File

@@ -61,7 +61,7 @@
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-react-hooks": "^5.2.0",
"formal-git": "^1.2.8",
"formal-git": "^1.2.9",
"globals": "^16.3.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/customizableui/CustomizeMode.sys.mjs b/browser/components/customizableui/CustomizeMode.sys.mjs
index fd3c54a1d80f5800ffd2dcaaf594eed4bd2d300c..259af2688e5a8bca88017e5da0bfdb488ab59f59 100644
index fd3c54a1d80f5800ffd2dcaaf594eed4bd2d300c..3178bd28affd8bd2e18c347fde6c3ec00068710c 100644
--- a/browser/components/customizableui/CustomizeMode.sys.mjs
+++ b/browser/components/customizableui/CustomizeMode.sys.mjs
@@ -503,7 +503,7 @@ export class CustomizeMode {
@@ -28,24 +28,3 @@ index fd3c54a1d80f5800ffd2dcaaf594eed4bd2d300c..259af2688e5a8bca88017e5da0bfdb48
aNode.localName == "toolbarseparator" ||
aNode.localName == "toolbarspring" ||
aNode.localName == "toolbarspacer"
@@ -3128,6 +3129,20 @@ export class CustomizeMode {
if (makeSpaceImmediately) {
aDraggedOverItem.setAttribute("notransition", "true");
}
+ if (aItem.parentElement.id === "TabsToolbar-customization-target") {
+ // We change the border values so we can properly implement the native vertical tabs
+ // drag and drop behavior.
+ aItem.style.borderColor = "transparent";
+ if (aValue == "before") {
+ prop = "borderTopWidth";
+ otherProp = "borderBottomWidth";
+ aItem.style.borderTopStyle = "solid";
+ } else {
+ prop = "borderBottomWidth";
+ otherProp = "borderTopWidth";
+ aItem.style.borderBottomStyle = "solid";
+ }
+ }
aDraggedOverItem.style[prop] = borderWidth + "px";
aDraggedOverItem.style.removeProperty(otherProp);
if (makeSpaceImmediately) {

View File

@@ -63,7 +63,7 @@ export var ZenCustomizableUI = new (class {
default-overflowbutton="nav-bar-overflow-button"
default-overflowtarget="widget-overflow-list"
default-overflowpanel="widget-overflow"
addon-webext-overflowbutton="unified-extensions-button"
addon-webext-overflowbutton="zen-site-data-icon-button"
addon-webext-overflowtarget="overflowed-extensions-list"
mode="icons">
<hbox id="zen-sidebar-top-buttons-customization-target" class="customization-target" flex="1">