show videos and thumbnails of different aspect ratios properly on my movies dialogue

This commit is contained in:
wil authored and Michael Chung committed 2024-06-12 14:13:01 -04:00
1 parent f909c36a47
commit a0d6616e52
3 files changed
+4 -3

No files matched your search

+1
View File
@@ -58,6 +58,7 @@ module.exports = {
// we are incapable to provide support for blind people atm
"jsx-a11y/click-events-have-key-events": SEVERITY.OFF,
"jsx-a11y/no-static-element-interactions": SEVERITY.OFF,
"jsx-a11y/media-has-caption": SEVERITY.OFF,
},
},
@@ -43,12 +43,12 @@ export function CompletedCard({ movie, setMovieId }: Props) {
}}
>
<div className="flex gap-4">
<div className="rounded-lg">
<div className="flex h-32 w-32 justify-center rounded-lg bg-ui-background">
<img
src={
loadError ? "/resources/images/movie-placeholder.png" : imageUrl
}
className="aspect-video w-36 rounded-lg object-cover"
className="h-full object-contain"
alt={movie.maybe_title ?? "unknown"}
crossOrigin="anonymous"
onError={() => setLoadError(true)}
@@ -68,7 +68,7 @@ export function Sharing({ mediaFile, setMediaFile }: Props) {
>
<div className="flex gap-6 px-5 pb-5">
<div className="max-h-[420px] w-full overflow-hidden rounded-lg">
<video controls crossOrigin="anonymous" width="100%">
<video controls crossOrigin="anonymous" className="h-full w-full">
<source
src={`${environmentVariables.value.GOOGLE_API}/vocodes-public${mediaFile?.public_bucket_path}`}
type="video/mp4"