fix fullscreen button on pwa

This commit is contained in:
Pas 2025-10-14 18:32:15 -06:00
parent e3fcf86b7c
commit 31cefc8e7a

View file

@ -210,17 +210,18 @@ export function PlayerPart(props: PlayerPartProps) {
<Player.Settings /> <Player.Settings />
</div> </div>
<div> <div>
{isPWA && status === playerStatus.PLAYING ? ( {status === playerStatus.PLAYING && (
<Widescreen /> <>
) : ( {isPWA && <Widescreen />}
<div <div
onTouchStart={handleTouchStart} onTouchStart={handleTouchStart}
onTouchEnd={handleTouchEnd} onTouchEnd={handleTouchEnd}
className="select-none touch-none" className="select-none touch-none"
style={{ WebkitTapHighlightColor: "transparent" }} style={{ WebkitTapHighlightColor: "transparent" }}
> >
{isHoldingFullscreen ? <Widescreen /> : <Player.Fullscreen />} {isHoldingFullscreen ? <Widescreen /> : <Player.Fullscreen />}
</div> </div>
</>
)} )}
</div> </div>
</div> </div>