mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
update player buttons
This commit is contained in:
parent
b8d8275045
commit
70858d57d3
2 changed files with 11 additions and 16 deletions
|
|
@ -163,26 +163,20 @@ export function PlayerPart(props: PlayerPartProps) {
|
|||
<div />
|
||||
<div className="flex justify-center space-x-3">
|
||||
{/* Disable PiP for iOS PWA */}
|
||||
{!isIOSPWA &&
|
||||
(status === playerStatus.PLAYING ? <Player.Pip /> : null)}
|
||||
{!isIOSPWA && status === playerStatus.PLAYING && <Player.Pip />}
|
||||
<Player.Episodes />
|
||||
{status === playerStatus.PLAYING ? (
|
||||
<div className="hidden ssm:block">
|
||||
<Player.Captions />
|
||||
</div>
|
||||
) : null}
|
||||
<Player.Settings />
|
||||
{/* Expand button for iOS PWA only */}
|
||||
{isIOSPWA && status === playerStatus.PLAYING && <Widescreen />}
|
||||
{isIOSPWA && <IosPwaLimitations />}
|
||||
</div>
|
||||
<div>
|
||||
{/* Disable for iOS PWA */}
|
||||
{!isIOSPWA && (
|
||||
<div>
|
||||
<Player.Fullscreen />
|
||||
</div>
|
||||
)}
|
||||
{/* Add info for iOS PWA */}
|
||||
{isIOSPWA && (
|
||||
<div>
|
||||
<IosPwaLimitations />
|
||||
</div>
|
||||
)}
|
||||
{/* iOS PWA */}
|
||||
{!isIOSPWA && <Player.Fullscreen />}
|
||||
{isIOSPWA && status === playerStatus.PLAYING && <Widescreen />}
|
||||
</div>
|
||||
</div>
|
||||
</Player.BottomControls>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ const config: Config = {
|
|||
extend: {
|
||||
/* breakpoints */
|
||||
screens: {
|
||||
xs: "350px",
|
||||
ssm: "400px",
|
||||
'2xl': '1921px', // Custom breakpoint for screens at least 1920px wide
|
||||
'3xl': '2650px', // Custom breakpoint for screens at least 2650px wide
|
||||
|
|
|
|||
Loading…
Reference in a new issue