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}
|
||||
ref={nodeRef}
|
||||
style={{
|
||||
x: isMobile ? 0 : x,
|
||||
y: isMobile ? 0 : y,
|
||||
x: isMobile ? window.innerWidth / 2 - 150 : x,
|
||||
y: isMobile ? window.innerHeight / 2 - 200 : y,
|
||||
touchAction: 'none',
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user