mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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({
|
||||
flexGrow: 1,
|
||||
flexShrink: 1,
|
||||
bg: "black",
|
||||
// @ts-ignore Web only
|
||||
cursor: displayControls ? "unset" : "none",
|
||||
|
@ -191,7 +191,7 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
|
||||
// onPlay={() => onPlayPause?.call(null, true)}
|
||||
// onPause={() => onPlayPause?.call(null, false)}
|
||||
onEnded={onEnd}
|
||||
{...css({ width: "100%", height: "100%" })}
|
||||
{...css({ width: "100%", height: "100%", objectFit: "contain" })}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user