Increase f2f location randomization radius

This commit is contained in:
Reckless_Satoshi 2023-10-17 09:56:48 -07:00
parent a383f8ad18
commit 8aed0aa7f3
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -43,10 +43,7 @@ const F2fMapDialog = ({
const onSave = () => { const onSave = () => {
if (position && position[0] && position[1]) { if (position && position[0] && position[1]) {
onClose([ onClose([position[0] + Math.random() * 0.1 - 0.05, position[1] + Math.random() * 0.1 - 0.05]);
position[0] + Math.random() * 0.02 - 0.01,
position[1] + Math.random() * 0.02 - 0.01,
]);
} }
}; };
@ -61,6 +58,7 @@ const F2fMapDialog = ({
return ( return (
<Dialog <Dialog
open={open} open={open}
fullWidth
onClose={() => onClose()} onClose={() => onClose()}
aria-labelledby='worldmap-dialog-title' aria-labelledby='worldmap-dialog-title'
aria-describedby='worldmap-description' aria-describedby='worldmap-description'
@ -127,7 +125,16 @@ const F2fMapDialog = ({
</Grid> </Grid>
</Grid> </Grid>
</DialogTitle> </DialogTitle>
<DialogContent style={{ height: '100vh', width: '80vw', padding: 0, paddingBottom: '0.5em' }}> <DialogContent
style={{
height: '100vh',
width: '100%',
padding: 0,
paddingBottom: '0.5em',
display: 'flex',
alignItems: 'center',
}}
>
<Map <Map
interactive={interactive} interactive={interactive}
orderType={orderType} orderType={orderType}