Fix video fit

This commit is contained in:
Zoe Roux 2023-07-10 00:36:19 +09:00
parent e5430a7aed
commit 7797a7bf53
2 changed files with 2 additions and 1 deletions

View File

@ -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",

View File

@ -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" })}
/>
);
});