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 />
</div>
<div>
{isPWA && status === playerStatus.PLAYING ? (
<Widescreen />
) : (
<div
onTouchStart={handleTouchStart}
onTouchEnd={handleTouchEnd}
className="select-none touch-none"
style={{ WebkitTapHighlightColor: "transparent" }}
>
{isHoldingFullscreen ? <Widescreen /> : <Player.Fullscreen />}
</div>
{status === playerStatus.PLAYING && (
<>
{isPWA && <Widescreen />}
<div
onTouchStart={handleTouchStart}
onTouchEnd={handleTouchEnd}
className="select-none touch-none"
style={{ WebkitTapHighlightColor: "transparent" }}
>
{isHoldingFullscreen ? <Widescreen /> : <Player.Fullscreen />}
</div>
</>
)}
</div>
</div>