From d160548d264bbd6e2dc10fec324196982940371a Mon Sep 17 00:00:00 2001 From: Captain Jack Sparrow <163903675+sussy-code@users.noreply.github.com> Date: Wed, 24 Apr 2024 23:34:40 +0000 Subject: [PATCH] Fix shitty button handling on discover page --- src/pages/Discover.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/Discover.tsx b/src/pages/Discover.tsx index 1bea904d..b0d9cb18 100644 --- a/src/pages/Discover.tsx +++ b/src/pages/Discover.tsx @@ -293,13 +293,13 @@ export function Discover() { loading="lazy" className="rounded-xl relative" /> -

+

{isTVShow - ? (media.name?.length ?? 0) > 36 - ? `${media.name?.slice(0, 36)}...` + ? (media.name?.length ?? 0) > 32 + ? `${media.name?.slice(0, 32)}...` : media.name - : (media.title?.length ?? 0) > 36 - ? `${media.title?.slice(0, 36)}...` + : (media.title?.length ?? 0) > 32 + ? `${media.title?.slice(0, 32)}...` : media.title}

@@ -312,7 +312,7 @@ export function Discover() {