Skip to content

Commit 429f74a

Browse files
committed
feat: Set the style directly instead of using motion, b=no-bug, c=folders
1 parent 1f72765 commit 429f74a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/zen/folders/ZenFolders.mjs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -632,16 +632,8 @@
632632
const adjustedHeight = isSplitView
633633
? heightUntilSelected - 2
634634
: heightUntilSelected;
635-
636-
animations.push(
637-
gZenUIManager.motion.animate(
638-
activeGroupStart,
639-
{
640-
marginTop: -(adjustedHeight + 4 * (selectedTabs.length === 0 ? 1 : 0)),
641-
},
642-
{ duration: 0, ease: 'linear' }
643-
)
644-
);
635+
activeGroupStart.style.marginTop =
636+
-(adjustedHeight + 4 * (selectedTabs.length === 0 ? 1 : 0)) + 'px';
645637
}
646638
this.setFolderIndentation([tab], activeGroup, /* for collapse = */ true);
647639
} else {

0 commit comments

Comments
 (0)