Skip to content

Commit

Permalink
Improve movieSizeClasses
Browse files Browse the repository at this point in the history
  • Loading branch information
JHWelch committed Dec 30, 2023
1 parent 27f9957 commit 1a2342d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/components/MovieItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
</script>
Expand Down

0 comments on commit 1a2342d

Please sign in to comment.