From 9a621cab4e3870f595b8fa8c28a72c366f2d480a Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Wed, 21 Aug 2024 20:21:21 +0200 Subject: [PATCH] fix: add option for height --- components/ContinueWatchingPoster.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/ContinueWatchingPoster.tsx b/components/ContinueWatchingPoster.tsx index ac68b512..ab5a8831 100644 --- a/components/ContinueWatchingPoster.tsx +++ b/components/ContinueWatchingPoster.tsx @@ -9,10 +9,12 @@ import { getPrimaryImageUrl } from "@/utils/jellyfin/image/getPrimaryImageUrl"; type ContinueWatchingPosterProps = { item: BaseItemDto; + width?: number; }; const ContinueWatchingPoster: React.FC = ({ item, + width = 176, }) => { const [api] = useAtom(apiAtom); @@ -33,11 +35,21 @@ const ContinueWatchingPoster: React.FC = ({ if (!url) return ( - + ); return ( - +