fix(challenge modal): on mobile the modal was incorrectly positioned on top left

This commit is contained in:
Tom (plebeius.eth)
2025-06-04 12:59:06 +02:00
parent b3bcd5896c
commit bb0fcb9c1a
@@ -96,8 +96,8 @@ const Challenge = ({ challenge, closeModal }: ChallengeProps) => {
className={styles.container} className={styles.container}
ref={nodeRef} ref={nodeRef}
style={{ style={{
x: isMobile ? 0 : x, x: isMobile ? window.innerWidth / 2 - 150 : x,
y: isMobile ? 0 : y, y: isMobile ? window.innerHeight / 2 - 200 : y,
touchAction: 'none', touchAction: 'none',
}} }}
> >