Modal not working on iOS
This commit is contained in:
13
web/dist/main.css
vendored
13
web/dist/main.css
vendored
@@ -956,6 +956,10 @@ h5 {
|
|||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact-form-message textarea {
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
.contact-form-footer {
|
.contact-form-footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
@@ -1013,6 +1017,15 @@ h5 {
|
|||||||
.contact-form-alert {
|
.contact-form-alert {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact-form-message textarea {
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
.image-dot {
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
margin: 0 3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.noselect {
|
.noselect {
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ export default class ContactModal extends React.Component {
|
|||||||
<textarea
|
<textarea
|
||||||
onChange={this.onFieldChange.bind(this, 'message')}
|
onChange={this.onFieldChange.bind(this, 'message')}
|
||||||
value={message}
|
value={message}
|
||||||
rows="14"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="contact-form-alert noselect">
|
<div className="contact-form-alert noselect">
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export default class Gallery extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={img}
|
key={index}
|
||||||
onClick={this.onImageDotClick.bind(this, index)}
|
onClick={this.onImageDotClick.bind(this, index)}
|
||||||
className={cls}
|
className={cls}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -110,10 +110,6 @@ export default class ListingDetails extends React.Component {
|
|||||||
<div className="ld-footer" />
|
<div className="ld-footer" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{contactFormOpen ? <ContactModal
|
|
||||||
listingId={this.props.listing._id}
|
|
||||||
contact={this.props.contact}
|
|
||||||
dispatch={this.props.dispatch} /> : null}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import React from 'react'
|
|||||||
import Filters from './Filters'
|
import Filters from './Filters'
|
||||||
import Listings from './Listings'
|
import Listings from './Listings'
|
||||||
import ListingDetails from './ListingDetails'
|
import ListingDetails from './ListingDetails'
|
||||||
|
import ContactModal from './ContactModal'
|
||||||
import {pacSelectFirst} from '../helpers/googleMaps'
|
import {pacSelectFirst} from '../helpers/googleMaps'
|
||||||
import {loadProperties, loadSeen, loadListing} from '../lib/api'
|
import {loadProperties, loadSeen, loadListing} from '../lib/api'
|
||||||
import {handleMessage} from '../lib/handlers'
|
import {handleMessage} from '../lib/handlers'
|
||||||
@@ -582,8 +583,14 @@ class Main extends React.Component {
|
|||||||
rightClass = 'right-shown'
|
rightClass = 'right-shown'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const {contactFormOpen} = this.state
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
{contactFormOpen ? <ContactModal
|
||||||
|
listingId={this.state.listing._id}
|
||||||
|
contact={this.state.contact}
|
||||||
|
dispatch={this.dispatch.bind(this)} /> : null}
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<a className="hamburger-menu">K</a>
|
<a className="hamburger-menu">K</a>
|
||||||
<span className="title">KIVI</span>
|
<span className="title">KIVI</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user