From babd7ad871bf9338b9c1b2ffb3e884c62c0150d5 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Sat, 3 Jan 2026 18:36:46 +0100 Subject: [PATCH] feat: Fixed animating new tabs and improved compact mode correctness, b=no-bug, c=common, compact-mode --- src/zen/common/modules/ZenUIManager.mjs | 2 +- src/zen/compact-mode/ZenCompactMode.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zen/common/modules/ZenUIManager.mjs b/src/zen/common/modules/ZenUIManager.mjs index 3f073c75a..b775ad136 100644 --- a/src/zen/common/modules/ZenUIManager.mjs +++ b/src/zen/common/modules/ZenUIManager.mjs @@ -877,7 +877,7 @@ window.gZenVerticalTabsManager = { { opacity: [0, 1], transform: ['scale(0.95)', 'scale(1)'], - marginBottom: isLastItem() ? [] : [transform, '0px'], + marginBottom: isLastItem() ? ['0px', '0px'] : [transform, '0px'], }, { duration: 110, diff --git a/src/zen/compact-mode/ZenCompactMode.mjs b/src/zen/compact-mode/ZenCompactMode.mjs index 90cdfc9a1..cd31f3d46 100644 --- a/src/zen/compact-mode/ZenCompactMode.mjs +++ b/src/zen/compact-mode/ZenCompactMode.mjs @@ -720,7 +720,7 @@ window.gZenCompactModeManager = { MousePosTracker._callListener({ onMouseEnter: () => (isHovered = true), onMouseLeave: () => {}, - getMouseTargetRect: () => window.windowUtils.getBoundsWithoutFlushing(target), + getMouseTargetRect: () => target.getBoundingClientRect(), }); // Let's double check if the mouse is still hovering over the element, see the bug above. if (isHovered) {