From 947e376c292ded8fe661489c04eaa09f75ff71a1 Mon Sep 17 00:00:00 2001 From: imnyang Date: Sat, 20 Dec 2025 01:18:03 +0900 Subject: [PATCH] fix: add mobile responsiveness to TXT component --- src/app/page.tsx | 2 +- src/components/txt.tsx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 322ce83..c3aadf7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -42,7 +42,7 @@ export default function Page() { me@imnya.ng -
+
diff --git a/src/components/txt.tsx b/src/components/txt.tsx index 453ff4e..d244e17 100644 --- a/src/components/txt.tsx +++ b/src/components/txt.tsx @@ -1,10 +1,15 @@ import Image from "next/image"; +import { useIsMobile } from "@/hooks/use-mobile"; interface TXTProps { onHover?: (position: { x: number; y: number } | null) => void; } export default function TXT({ onHover }: TXTProps) { + const isMobile = useIsMobile(); + + if (isMobile) return null; + return (