mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +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}
|
||||
{status === playerStatus.PLAYBACK_ERROR ||
|
||||
status === playerStatus.PLAYING ? (
|
||||
<Player.Captions />
|
||||
<>
|
||||
<Player.Captions />
|
||||
<Player.Settings />
|
||||
</>
|
||||
) : null}
|
||||
<Player.Settings />
|
||||
{/* Fullscreen on when not shifting */}
|
||||
{!isShifting && <Player.Fullscreen />}
|
||||
|
||||
|
|
@ -203,11 +205,13 @@ export function PlayerPart(props: PlayerPartProps) {
|
|||
)}
|
||||
<Player.Episodes inControl={inControl} />
|
||||
{status === playerStatus.PLAYING ? (
|
||||
<div className="hidden ssm:block">
|
||||
<Player.Captions />
|
||||
</div>
|
||||
<>
|
||||
<div className="hidden ssm:block">
|
||||
<Player.Captions />
|
||||
</div>
|
||||
<Player.Settings />
|
||||
</>
|
||||
) : null}
|
||||
<Player.Settings />
|
||||
</div>
|
||||
<div>
|
||||
{status === playerStatus.PLAYING && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue