mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-20 12:19:00 +00:00
Increase f2f location randomization radius
This commit is contained in:
parent
a383f8ad18
commit
8aed0aa7f3
@ -43,10 +43,7 @@ const F2fMapDialog = ({
|
||||
|
||||
const onSave = () => {
|
||||
if (position && position[0] && position[1]) {
|
||||
onClose([
|
||||
position[0] + Math.random() * 0.02 - 0.01,
|
||||
position[1] + Math.random() * 0.02 - 0.01,
|
||||
]);
|
||||
onClose([position[0] + Math.random() * 0.1 - 0.05, position[1] + Math.random() * 0.1 - 0.05]);
|
||||
}
|
||||
};
|
||||
|
||||
@ -61,6 +58,7 @@ const F2fMapDialog = ({
|
||||
return (
|
||||
<Dialog
|
||||
open={open}
|
||||
fullWidth
|
||||
onClose={() => onClose()}
|
||||
aria-labelledby='worldmap-dialog-title'
|
||||
aria-describedby='worldmap-description'
|
||||
@ -127,7 +125,16 @@ const F2fMapDialog = ({
|
||||
</Grid>
|
||||
</Grid>
|
||||
</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
|
||||
interactive={interactive}
|
||||
orderType={orderType}
|
||||
|
Loading…
Reference in New Issue
Block a user