aboutsummaryrefslogtreecommitdiff
path: root/components/watch
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-10-24 11:05:06 +0700
committerFactiven <[email protected]>2023-10-24 11:05:06 +0700
commit0a30e0570a5d22dd8c459fd9769fe4386c07aae8 (patch)
tree67346a73b4be2ed5e5a7008828e4bc70bac3bd92 /components/watch
parentfixed redis error for manga (#95) (diff)
downloadmoopa-4.2.1.tar.xz
moopa-4.2.1.zip
Update v4.2.1v4.2.1
Diffstat (limited to 'components/watch')
-rw-r--r--components/watch/primary/details.js12
1 files changed, 8 insertions, 4 deletions
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({
<div className="pb-4 h-full flex">
<div className="aspect-[9/13] h-[240px]">
{info ? (
- <Image
+ <img
src={info.coverImage.extraLarge}
alt="Anime Cover"
width={1000}
height={1000}
- priority
className="object-cover aspect-[9/13] h-[240px] rounded-md"
/>
) : (
@@ -169,7 +173,7 @@ export default function Details({
{showComments && (
<div>
{info && (
- <div className="mt-5 px-5">
+ <div className="mt-5">
<DisqusComments
key={id}
post={{