fix(webui): show control bar in single-file fullscreen; theme the overlay

The single-file player fullscreened the inner video-area element, which
is not an ancestor of the control bar, so the bar was never visible in
fullscreen. Fullscreen the player root instead so the floating control
bar is included and the existing show-on-move / hide-after-idle logic
works (YouTube-style).

Also make the control-bar colors theme-aware in all cases. The fullscreen
floating overlay now uses bg-card/90 + backdrop-blur + foreground text
instead of a hardcoded dark overlay, so it follows the app light/dark
theme. The former themedChrome prop is renamed to floatOverlayInFullScreen
(default true = single-file floating overlay; compare passes false to keep
its bar in-flow).
This commit is contained in:
yiling
2026-07-04 12:48:15 +08:00
parent aeaff3bc88
commit d3c1c641b4
3 changed files with 18 additions and 29 deletions
@@ -76,7 +76,7 @@ export function CompareControlBar({
state={state}
zoom={activeState.zoom}
isControlsVisible
themedChrome
floatOverlayInFullScreen={false}
buffered={v.buffered}
data={data}
resolutions={v.resolutions as DisplayTranscode[]}