mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Fix video fit
This commit is contained in:
parent
e5430a7aed
commit
7797a7bf53
@ -187,6 +187,7 @@ export const Player: QueryPage<{ slug: string }> = ({ slug }) => {
|
|||||||
}}
|
}}
|
||||||
{...css({
|
{...css({
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
|
flexShrink: 1,
|
||||||
bg: "black",
|
bg: "black",
|
||||||
// @ts-ignore Web only
|
// @ts-ignore Web only
|
||||||
cursor: displayControls ? "unset" : "none",
|
cursor: displayControls ? "unset" : "none",
|
||||||
|
@ -191,7 +191,7 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
|
|||||||
// onPlay={() => onPlayPause?.call(null, true)}
|
// onPlay={() => onPlayPause?.call(null, true)}
|
||||||
// onPause={() => onPlayPause?.call(null, false)}
|
// onPause={() => onPlayPause?.call(null, false)}
|
||||||
onEnded={onEnd}
|
onEnded={onEnd}
|
||||||
{...css({ width: "100%", height: "100%" })}
|
{...css({ width: "100%", height: "100%", objectFit: "contain" })}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user