feat: Fixed animating new tabs and improved compact mode correctness, b=no-bug, c=common, compact-mode

This commit is contained in:
mr. m
2026-01-03 18:36:46 +01:00
parent 4000cc3d55
commit babd7ad871
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

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