mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-21 09:29:46 +01:00
`toggleMode` is disabled on desktop, and `onOpenPanel` is gated behind it, so a player collapsed into the mini circle while the window was narrow could never be reopened once the window grew past the 810px breakpoint. The circle stayed on screen, labelled "Open", with its click handler inert. The player already supports `mode` as a controlled prop paired with `onModeChange`, but `mode` was hardcoded to `full`. Since `updateMode` only reacts when the value actually changes, that hardcoded prop never triggered anything. Track the mode in state, feed it back through `onModeChange`, and reset it to `full` when the viewport crosses into desktop. The footer player is restored on resize, `toggleMode` keeps its current behaviour, and the narrow-window experience is unchanged. |
||
|---|---|---|
| .. | ||
| bin | ||
| build | ||
| public | ||
| src | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| embed.go | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| prettier.config.js | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.js | ||