mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
merge: challenge modal pixel snap fix
This commit is contained in:
@@ -40,6 +40,8 @@
|
|||||||
border: none;
|
border: none;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
background-image: var(--close-button-background-image);
|
background-image: var(--close-button-background-image);
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container input, .container textarea {
|
.container input, .container textarea {
|
||||||
@@ -160,4 +162,4 @@
|
|||||||
border-left: none;
|
border-left: none;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -304,8 +304,8 @@ const Challenge = ({ challenge, closeModal, abandonModal }: ChallengeProps) => {
|
|||||||
className={containerClasses.join(' ')}
|
className={containerClasses.join(' ')}
|
||||||
ref={nodeRef}
|
ref={nodeRef}
|
||||||
style={{
|
style={{
|
||||||
x: isMobile ? mobileX : x,
|
x: isMobile ? mobileX : x.to((value) => Math.round(value)),
|
||||||
y: isMobile ? mobileY : y,
|
y: isMobile ? mobileY : y.to((value) => Math.round(value)),
|
||||||
touchAction: 'none',
|
touchAction: 'none',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user