docs: move AudioPlayerBar unification from PLAN.md to COMPLETED.md
This commit is contained in:
@@ -8,6 +8,28 @@ Newest entries at the top. Group by phase/wave header (mirroring `PLAN.md` / `CM
|
||||
|
||||
## Phase 2 — Product surface: player and theming
|
||||
|
||||
**Status:** AudioPlayerBar responsive unification and SpectrumVisualizer fix landed on 2026-06-05.
|
||||
|
||||
### AudioPlayerBar Responsive Unification
|
||||
|
||||
**Landed 2026-06-05.**
|
||||
|
||||
Collapsed the two divergent Razor trees in `AudioPlayerBar.razor` (`@if (_isDesktop)` / `@else`) into a single markup tree where CSS — not a runtime breakpoint flag — drives the responsive layout. Removed `IBrowserViewportService`, the `_isDesktop` field, `OnAfterRenderAsync`, and the viewport subscription/unsubscription from the code-behind.
|
||||
|
||||
**Structural changes:**
|
||||
- Single `.player-layout` flex container (in `AudioPlayerBar.razor.css`) replaces the dual-branch conditional. Three children (`PlayerTransportZone`, `VolumeControls`, `PlayerSeekZone`) in source order; media query at 600px (`Sm` breakpoint) reorders via CSS `order` property and forces `SeekZone` to full-width below the transport/volume row on narrow viewports.
|
||||
- `PlayerTransportZone` flips its internal axis (vertical ↔ horizontal) via scoped CSS override of `MudStack` `flex-direction` at the 600px boundary — no parameter added to the component.
|
||||
- `::deep` prefix removed from `MudBlazor` component-class selectors in `PlayerTransportZone.razor.css` now that axis is purely CSS-driven and no runtime flag determines structure.
|
||||
- **SpectrumVisualizer bars now appear on first expand** — fixed by subscribing to the multicast `StateChanged` event (same pattern used by `AudioPlayerBar`), ensuring animation is initialized after mount.
|
||||
|
||||
**Scope:**
|
||||
- Unified responsive layout (desktop/mobile branches merged into single tree).
|
||||
- Both `AudioPlayerBar` and `SpectrumVisualizer` components affected.
|
||||
- Build clean: 0 errors, 0 new warnings.
|
||||
|
||||
**Notes for future work:**
|
||||
- First-render layout flash eliminated by construction (CSS media query evaluates at paint, not async subscription).
|
||||
|
||||
**Status:** Desktop AudioPlayerBar redesign landed on 2026-06-04.
|
||||
|
||||
### Desktop AudioPlayerBar — migrate to MudBlazor theme system
|
||||
|
||||
Reference in New Issue
Block a user