From a2c5ba51843073e32590ce3e9bcb046f08d262e2 Mon Sep 17 00:00:00 2001 From: ner Date: Thu, 7 Nov 2024 17:27:20 +0200 Subject: [PATCH] fix: poster aspect ratio --- app/(site)/(root)/components/Carousel/index.tsx | 4 ++-- components/Preview/index.tsx | 2 +- styles/index.css | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/(site)/(root)/components/Carousel/index.tsx b/app/(site)/(root)/components/Carousel/index.tsx index 77934c3..7729a79 100644 --- a/app/(site)/(root)/components/Carousel/index.tsx +++ b/app/(site)/(root)/components/Carousel/index.tsx @@ -39,7 +39,7 @@ const Carousel = memo( ); return ( -
+
{!loaded && } ['components'] = { return (
- +
); }, diff --git a/components/Preview/index.tsx b/components/Preview/index.tsx index 64bbbc6..98f2e93 100644 --- a/components/Preview/index.tsx +++ b/components/Preview/index.tsx @@ -39,7 +39,7 @@ const Preview: FC = ({ show: baseShow, showType, showId, className, poste )} > {poster || } -
+
{show.title}
diff --git a/styles/index.css b/styles/index.css index dddac70..7a5f89b 100644 --- a/styles/index.css +++ b/styles/index.css @@ -135,6 +135,13 @@ width: 300px; height: 450px; flex-shrink: 0; + @media screen and (max-width: 600px) { + width: 100%; + height: 100%; + aspect-ratio: 2/3; + } + } + .static-aspect-ratio { @media screen and (max-width: 600px) { --width: calc(100vw - 1rem); width: var(--width);