From 10191f538051dfc1a804980864d97bc9b19da5f4 Mon Sep 17 00:00:00 2001 From: andrzej Date: Mon, 7 Oct 2024 23:56:43 +0200 Subject: [PATCH] improve mobile layout --- src/App.tsx | 8 ++++---- src/objects/movie-wall.tsx | 3 ++- src/objects/whereToWatch.tsx | 1 + tailwind.config.js | 3 +++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 53c0aee..f7d204f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -74,7 +74,7 @@ function App() { let desiredLength = 0 if (width > 1280) { desiredLength = 18 - } else if (width > 640) { + } else if (width > 400) { desiredLength = 16 } else { desiredLength = 15 } //ensure movies.length is a multiple of 6 (so it makes an orphanless grid) @@ -94,10 +94,10 @@ function App() {
-
- +
+ { link: string; } function ProviderIcons({ providerList, link }: ProviderIconsProps) { + if (!providerList) { return "" } const list = providerList.map((e: any, i: number) => { return