feat: Fixed delay and animations for the omnibox, b=no-bug, c=common

This commit is contained in:
mr. m
2025-09-27 09:31:05 +02:00
parent 933c9de691
commit 45f0fd503c
2 changed files with 4 additions and 6 deletions

View File

@@ -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(() => {

View File

@@ -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% {