From 45f0fd503c45996ee51268c9e7d35f2448e13571 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Sat, 27 Sep 2025 09:31:05 +0200 Subject: [PATCH] feat: Fixed delay and animations for the omnibox, b=no-bug, c=common --- src/zen/common/ZenUIManager.mjs | 8 +++----- src/zen/common/styles/zen-animations.css | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/zen/common/ZenUIManager.mjs b/src/zen/common/ZenUIManager.mjs index 055670d0c..cf6e04202 100644 --- a/src/zen/common/ZenUIManager.mjs +++ b/src/zen/common/ZenUIManager.mjs @@ -250,11 +250,9 @@ var gZenUIManager = { const input = gURLBar.textbox; if (gURLBar.hasAttribute('breakout-extend') && !this._animatingSearchMode) { this._animatingSearchMode = true; - this.motion - .animate(input, { scale: [1, 0.98, 1] }, { duration: 0.25, delay: 0.1 }) - .then(() => { - delete this._animatingSearchMode; - }); + this.motion.animate(input, { scale: [1, 0.98, 1] }, { duration: 0.25 }).then(() => { + delete this._animatingSearchMode; + }); if (searchMode) { gURLBar.setAttribute('animate-searchmode', 'true'); this._animatingSearchModeTimeout = setTimeout(() => { diff --git a/src/zen/common/styles/zen-animations.css b/src/zen/common/styles/zen-animations.css index 6956fbc7f..5d3c6d091 100644 --- a/src/zen/common/styles/zen-animations.css +++ b/src/zen/common/styles/zen-animations.css @@ -103,7 +103,7 @@ /* Mark: URL Bar */ @keyframes zen-urlbar-searchmode { 0% { - box-shadow: 0 0 20px color-mix(in srgb, var(--zen-primary-color), var(--toolbox-textcolor) 40%); + box-shadow: 0 0 20px color-mix(in srgb, var(--zen-primary-color), var(--toolbox-textcolor) 20%); } 100% {