Repository navigation
fix(web): keep the audiobook mini bar beside the collapsing sidebar - #5642
Merged
Quick104 merged 2 commits intoNov 30, 2026
Merged
Conversation
The mini bar starts at --app-sidebar-offset, which snaps to its new value when the sidebar collapses or expands on a title's page, while the sidebar itself animates for 300 ms. The bar jumped at once and covered the foot of the still-wide sidebar, or left a gap on the way back. Give it the shared follows-sidebar-collapse hold that the impersonation banner and the background watch bar use. The bar is pinned to the sidebar's edge, so the default 196 px hold is the right distance. Closes Silo-Server#5018
Leaving a title's page while the rail is hover-expanded keeps the sidebar at 260 px, so nothing slides. The expand hold still started follows-sidebar-collapse chrome at the rail's edge and slid it across the already-wide sidebar; the audiobook mini bar painted over its foot. AppSidebar now marks the root while it floats expanded over a title's page, and the expand hold skips that state.
Contributor
|
Warning Review limit reachedThis organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing. Next included review available in 59 minutes. View limit details
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #5018
Related issue: N/A
Validation tasks: none
Other clients: Apple N/A (web layout only); Android N/A (web layout only); Roku N/A (web layout only)
On desktop, the audiobook mini bar jumped at once when the user sidebar collapsed to its rail on a title's page, or expanded back, while the sidebar itself animates for 300 ms. Opening a movie from Home with an audiobook playing left the bar covering the foot of the still-wide sidebar (Admin and the profile row) by up to 196 px; going back left a 196 px gap beside the sidebar.
The mini bar now moves with the sidebar in both directions. Resting positions, phones, and windows narrower than 1024 px are unchanged.
Approach
The bar gets the shared
follows-sidebar-collapseclass from #5015, the same hold-and-release transform the impersonation banner and the background watch bar use. The bar is pinned to the sidebar's edge, so it keeps the default 196 px hold.Review found one path where that hold is wrong: leaving a title's page while the rail is hover-expanded. The sidebar is already 260 px wide then and doesn't animate, but the hold started the bar at the rail's edge and slid it across the sidebar. AppSidebar now marks the root element while it floats expanded over a title's page, and the expand hold skips that state. The banner and the watch bar share the rule, so they snap correctly on that path too.
Validation
mainwith the production web bundle, an Audiobooks (beta) library holding a generated audiobook, and a Movies library: with the mini bar showing, opening the movie from Home and going back, sampled every frame at 1280 and 1440 px, showed up to 196 px of overlap on collapse and a 196 px gap on expand.make test-web,verify-local-pathsandverify-size-ratchetpass. No Go code changed.Evidence: https://evidence.siloserver.org/r/silo-server/pr-5642/
Risks
While the bar holds its old position it is translated as a whole, so its end edge sits past the window for up to 300 ms on collapse (the close button slides in from the edge) and short of it on expand. The banner and the watch bar behave the same way; holding each edge separately would need a layout animation, which app.css avoids.
Checklist
AI Disclosure
mainshows, on an unlikely timing). It also noted the end-edge overhang during the hold (kept, see Risks) and the transform briefly re-anchoring the Chapters touch sheet if it is open during a navigation (dismissed: the sheet's backdrop blocks navigation, and the window is 300 ms).