From 696757003b2e185561357406836a3281ad0e9a49 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 1 May 2025 15:36:34 +0200 Subject: [PATCH] Fixed download animation when tabs are on the right --- src/zen/downloads/ZenDownloadAnimation.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/zen/downloads/ZenDownloadAnimation.mjs b/src/zen/downloads/ZenDownloadAnimation.mjs index 8750248df..67c26b865 100644 --- a/src/zen/downloads/ZenDownloadAnimation.mjs +++ b/src/zen/downloads/ZenDownloadAnimation.mjs @@ -317,7 +317,6 @@ `; const sideProp = areTabsPositionedRight ? 'right' : 'left'; - const startSideValue = areTabsPositionedRight ? '50px' : '-50px'; const fragment = window.MozXULElement.parseXULToFragment(boxAnimationHTML); this.#boxAnimationElement = fragment.querySelector('.zen-download-box-animation'); @@ -325,7 +324,7 @@ Object.assign(this.#boxAnimationElement.style, { bottom: '24px', transform: 'scale(0.8)', - [sideProp]: startSideValue, + [sideProp]: '-50px', }); wrapper.appendChild(this.#boxAnimationElement);