Refactor URL bar styles to remove box-shadow and outlines for improved aesthetics

This commit is contained in:
mr. M
2025-01-19 22:33:56 +01:00
parent 9d8b8458bf
commit b071c7ff11
2 changed files with 2 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs
index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..5b6d9e858ae1e55158eefc50d6aac67763ef7e00 100644
index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..1a3142c58af638a731f546b8695a0fc3fab9054c 100644
--- a/browser/components/customizableui/CustomizableUI.sys.mjs
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs
@@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
@@ -129,7 +129,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..5b6d9e858ae1e55158eefc50d6aac677
);
totalAvailWidth =
- getInlineSize(this.#toolbar) -
+ (parseInt(this.#toolbar.closest("#navigator-toolbox")?.getAttribute("width")) ||
+ ((win.gZenVerticalTabsManager._hasSetSingleToolbar ? parseInt(this.#toolbar.closest("#navigator-toolbox")?.getAttribute("width")) : 0) ||
+ getInlineSize(this.#toolbar)) -
parseFloat(style.paddingLeft) -
parseFloat(style.paddingRight) -