mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-25 08:44:11 +00:00
fix: Fixed overflowed extensions not opening, p=#10818, c=common
This commit is contained in:
8
package-lock.json
generated
8
package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user