From 0a30e0570a5d22dd8c459fd9769fe4386c07aae8 Mon Sep 17 00:00:00 2001 From: Factiven Date: Tue, 24 Oct 2023 11:05:06 +0700 Subject: Update v4.2.1 --- components/watch/primary/details.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'components/watch/primary') diff --git a/components/watch/primary/details.js b/components/watch/primary/details.js index 32e1391..4af12ac 100644 --- a/components/watch/primary/details.js +++ b/components/watch/primary/details.js @@ -26,7 +26,12 @@ export default function Details({ } useEffect(() => { - setShowComments(false); + const isMobile = window.matchMedia("(max-width: 768px)").matches; + if (isMobile) { + setShowComments(false); + } else { + setShowComments(true); + } }, [id]); return ( @@ -35,12 +40,11 @@ export default function Details({
{info ? ( - Anime Cover ) : ( @@ -169,7 +173,7 @@ export default function Details({ {showComments && (
{info && ( -
+