Skip to content

gh-15729: Animate library folders on their first expand - #15899

Merged
mr-cheffy merged 4 commits into
zen-browser:devfrom
andrewwbuilds:fix/15729-library-folder-expand
Oct 13, 2026
Merged

mr-cheffy merged 4 commits into
zen-browser:devfrom
andrewwbuilds:fix/15729-library-folder-expand

Conversation

@andrewwbuilds

@andrewwbuilds andrewwbuilds commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #15729

Copies of collapsed folders in the library's spaces section are built already collapsed, so their tabs are hidden but .zen-tab-group-start never gets the negative margin-top that collapsing leaves on a real folder. The first expand then animates that margin from 0 to 0 and the tabs pop in. Once the copy has been collapsed it has the offset, which is why only the first expand was off. animateExpand() now measures and applies the offset itself when it un-hides a container that doesn't have one, so the slide starts from the right place.

Added browser_library_folder_first_expand.js, which expands the copy of a collapsed folder in the library and checks the margin animation starts below 0. It fails on dev and passes with this change. Tested on a macOS arm64 build, and zen/tests/library, zen/tests/folders and zen/tests/live-folders give the same results with and without it.

@mr-cheffy mr-cheffy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! I've also removed startup timeout since it would now be fixed with this change as well.

@mr-cheffy
mr-cheffy merged commit 6cc2526 into zen-browser:dev Oct 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Library] : Folder animations don't play on first library open

2 participants