fix: add mobile responsiveness to TXT component
This commit is contained in:
parent
82b5b0719c
commit
947e376c29
2 changed files with 6 additions and 1 deletions
|
|
@ -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 (
|
||||
<div
|
||||
className="flex flex-col items-center justify-center gap-4 absolute top-4 left-4 p-2 cursor-pointer font-galmuri drag-none select-none"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue