From 1a2342d54ee91bef984f9d14590f1eede875de37 Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Fri, 29 Dec 2023 21:55:50 -0600 Subject: [PATCH] Improve movieSizeClasses --- client/src/components/MovieItem.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/components/MovieItem.vue b/client/src/components/MovieItem.vue index da427dd9..faed6524 100644 --- a/client/src/components/MovieItem.vue +++ b/client/src/components/MovieItem.vue @@ -31,10 +31,9 @@ xl:w-full const movieSizeClasses = (week: WeekDto) => { const sm = movieSizeClass(week, 2) const lg = movieSizeClass(week, 3) - const xl = week.movies.length == 1 ? 'w-full' : 'w-1/3' - const xxl = week.movies.length == 1 ? 'w-full' : 'w-1/4' + const xxl = movieSizeClass(week, 4) - return `w-full sm:${sm} lg:${lg} xl:${xl} 2xl:${xxl}` + return `w-full sm:${sm} lg:${lg} 2xl:${xxl}` }