mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(challenge modal): on mobile the modal was incorrectly positioned on top left
This commit is contained in:
@@ -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',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user