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

@@ -370,9 +370,6 @@ button.popup-notification-dropmarker {
the backdrop woudn't work, we would need to apply a clip-path to the site and that's not recommended the backdrop woudn't work, we would need to apply a clip-path to the site and that's not recommended
due to performance issues */ due to performance issues */
background-color: light-dark(rgb(247, 247, 247), var(--zen-branding-bg)) !important; background-color: light-dark(rgb(247, 247, 247), var(--zen-branding-bg)) !important;
box-shadow: 0 0 1px 1px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1)) !important;
outline: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.2)) !important;
outline-offset: -1px !important;
} }
} }

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs 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 --- a/browser/components/customizableui/CustomizableUI.sys.mjs
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs +++ b/browser/components/customizableui/CustomizableUI.sys.mjs
@@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, { @@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
@@ -129,7 +129,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..5b6d9e858ae1e55158eefc50d6aac677
); );
totalAvailWidth = totalAvailWidth =
- getInlineSize(this.#toolbar) - - 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)) - + getInlineSize(this.#toolbar)) -
parseFloat(style.paddingLeft) - parseFloat(style.paddingLeft) -
parseFloat(style.paddingRight) - parseFloat(style.paddingRight) -