Minor adjustments

This commit is contained in:
Edin Dazdarevic
2017-04-13 21:27:33 +02:00
parent 233437e1c1
commit 1c133d21bc
3 changed files with 4 additions and 1 deletions

2
web/dist/main.css vendored
View File

@@ -852,7 +852,7 @@ h5 {
.modal > div { .modal > div {
width: 460px; width: 460px;
position: relative; position: relative;
margin: 10% auto; margin: 5% auto;
padding: 5px 20px 13px 20px; padding: 5px 20px 13px 20px;
border-radius: 10px; border-radius: 10px;
background: #fff; background: #fff;

View File

@@ -151,6 +151,8 @@ class Main extends React.Component {
map.setCenter(place.geometry.location) map.setCenter(place.geometry.location)
map.setZoom(18) map.setZoom(18)
} }
document.activeElement.blur();
this.dispatch({type: 'SEARCH_PLACE_CHANGED'}) this.dispatch({type: 'SEARCH_PLACE_CHANGED'})
}) })

View File

@@ -126,6 +126,7 @@ const viewImage = ({type, action}, component) => {
const searchPlaceChanged = ({type, action}, component) => { const searchPlaceChanged = ({type, action}, component) => {
component.setState({ component.setState({
listingDetails: false, listingDetails: false,
listingId: null,
page: 0 page: 0
}) })
} }