fix: cropped square videos
Some checks are pending
V3 Preview Deployment / Deploy-Preview (push) Waiting to run

This commit is contained in:
Kentai Radiquum 2025-03-19 00:36:04 +05:00
parent 5270c50c7b
commit 7f47ca3f97
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 3 additions and 6 deletions

View file

@ -268,14 +268,16 @@ export const ReleasePlayerCustom = (props: {
/>
</div>
{playerProps.useCustom ?
<MediaThemeSutro className="w-full aspect-video">
<MediaThemeSutro className="object-none w-full aspect-video">
{playerProps.type == "hls" ?
<HlsVideo
className="object-contain h-full aspect-video"
slot="media"
src={playerProps.src}
poster={playerProps.poster}
/>
: <video
className="object-contain h-full aspect-video"
slot="media"
src={playerProps.src}
poster={playerProps.poster}