mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 05:09:01 +00:00
Increase f2f location randomization radius
This commit is contained in:
parent
a383f8ad18
commit
8aed0aa7f3
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user