mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 05:32:23 +00:00
hide player settings button when not playing
This commit is contained in:
parent
1ab1b34187
commit
51a8f3a7a1
1 changed files with 10 additions and 6 deletions
|
|
@ -180,9 +180,11 @@ export function PlayerPart(props: PlayerPartProps) {
|
||||||
) : null}
|
) : null}
|
||||||
{status === playerStatus.PLAYBACK_ERROR ||
|
{status === playerStatus.PLAYBACK_ERROR ||
|
||||||
status === playerStatus.PLAYING ? (
|
status === playerStatus.PLAYING ? (
|
||||||
<Player.Captions />
|
<>
|
||||||
|
<Player.Captions />
|
||||||
|
<Player.Settings />
|
||||||
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
<Player.Settings />
|
|
||||||
{/* Fullscreen on when not shifting */}
|
{/* Fullscreen on when not shifting */}
|
||||||
{!isShifting && <Player.Fullscreen />}
|
{!isShifting && <Player.Fullscreen />}
|
||||||
|
|
||||||
|
|
@ -203,11 +205,13 @@ export function PlayerPart(props: PlayerPartProps) {
|
||||||
)}
|
)}
|
||||||
<Player.Episodes inControl={inControl} />
|
<Player.Episodes inControl={inControl} />
|
||||||
{status === playerStatus.PLAYING ? (
|
{status === playerStatus.PLAYING ? (
|
||||||
<div className="hidden ssm:block">
|
<>
|
||||||
<Player.Captions />
|
<div className="hidden ssm:block">
|
||||||
</div>
|
<Player.Captions />
|
||||||
|
</div>
|
||||||
|
<Player.Settings />
|
||||||
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
<Player.Settings />
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{status === playerStatus.PLAYING && (
|
{status === playerStatus.PLAYING && (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue