mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
feat: Set the style directly instead of using motion, b=no-bug, c=folders
This commit is contained in:
@@ -632,16 +632,8 @@
|
||||
const adjustedHeight = isSplitView
|
||||
? heightUntilSelected - 2
|
||||
: heightUntilSelected;
|
||||
|
||||
animations.push(
|
||||
gZenUIManager.motion.animate(
|
||||
activeGroupStart,
|
||||
{
|
||||
marginTop: -(adjustedHeight + 4 * (selectedTabs.length === 0 ? 1 : 0)),
|
||||
},
|
||||
{ duration: 0, ease: 'linear' }
|
||||
)
|
||||
);
|
||||
activeGroupStart.style.marginTop =
|
||||
-(adjustedHeight + 4 * (selectedTabs.length === 0 ? 1 : 0)) + 'px';
|
||||
}
|
||||
this.setFolderIndentation([tab], activeGroup, /* for collapse = */ true);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user