Skip to content

fix(web): keep the audiobook mini bar beside the collapsing sidebar - #5642

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/5018-minibar-sidebar-follow
Nov 30, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/5018-minibar-sidebar-follow

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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-collapse class 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

  • Reproduced on a local build of main with 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.
  • After, on the same data: 0 px between the sidebar's edge and the bar's start edge on every frame, in both directions. With the rail hover-expanded on the movie page, clicking Home now leaves the bar at the sidebar's edge instead of sliding it across. At 390 px the bar spans the full width as before.
  • Web lint, format check, typecheck, build, bundle budget, make test-web, verify-local-paths and verify-size-ratchet pass. No Go code changed.
  • No test added: the change is CSS motion that jsdom doesn't lay out or animate, and the repo has no browser test suite to hold it.

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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code (via T3 Code); Codex CLI for code review
  • Tool(s): Claude Code; Codex CLI; Playwright (headless Chromium) for the captures and per-frame measurements
  • Model(s): claude-opus-5-5; gpt-6.2-sol (code review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: two independent reviews of the full diff (gpt-6.2-sol via Codex, claude-opus-5-5), reconciled, at medium effort. gpt-6.2-sol found the bar sliding over an already hover-expanded sidebar when leaving a title's page; it was reproduced and fixed by skipping the hold in that state, and a second review of that fix found only a brief gap if the sidebar is clicked during its 300 ms hover-expand animation (dismissed: the same gap main shows, 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).

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.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

This 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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4be27a97-1cbc-4ae1-a02f-868865fee9f1
Commits

Reviewing files that changed from the base of the PR and between bc17dc0 and a7da84b.

Files selected for processing: 3

  • web/src/app.css
  • web/src/components/AppSidebar.tsx
  • web/src/pages/audiobooks/player/MiniBar.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 30, 2026
@silo-kody

silo-kody Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working priority: P2 Limited scope, workaround exists, or polish labels Nov 30, 2026
@Quick104
Quick104 merged commit 16d081a into Silo-Server:main Nov 30, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] The audiobook mini-player jumps under the sliding sidebar on a title's page

2 participants