made list scrollable
This commit is contained in:
parent
7543839985
commit
7736f3ff33
|
@ -19,7 +19,12 @@ body {
|
||||||
width: 99% !important;
|
width: 99% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sighting-details {
|
.sighting-list {
|
||||||
|
height: calc(100vh - 64px);
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sighting-details-content {
|
||||||
margin-top: 330px;
|
margin-top: 330px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class SightingDetail extends Component {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<SightingDetailMap lat={this.props.detail.lat} lng={this.props.detail.lng}/>
|
<SightingDetailMap lat={this.props.detail.lat} lng={this.props.detail.lng}/>
|
||||||
<div className='sighting-details'>
|
<div className='sighting-details-content'>
|
||||||
<p>{`Confidence: ${this.props.detail.confidence}`}</p>
|
<p>{`Confidence: ${this.props.detail.confidence}`}</p>
|
||||||
<p>{`When: ${this.props.detail.date}, ${this.props.detail.time}`}</p>
|
<p>{`When: ${this.props.detail.date}, ${this.props.detail.time}`}</p>
|
||||||
<p>{`Where: ${this.props.detail.lat} degrees N, and ${this.props.detail.lng} degrees E`}</p>
|
<p>{`Where: ${this.props.detail.lat} degrees N, and ${this.props.detail.lng} degrees E`}</p>
|
||||||
|
|
|
@ -70,7 +70,7 @@ class ViewSightings extends Component {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Grid container>
|
<Grid container>
|
||||||
<Grid item xs={12} md={6}>
|
<Grid item xs={12} md={6} className='sighting-list'>
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<List>
|
<List>
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ class ViewSightings extends Component {
|
||||||
</List>
|
</List>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12} md={6}>
|
<Grid item xs={12} md={6} className='sighting-details'>
|
||||||
{this.state.clicked === true && <SightingDetail detail={ this.state.selectedSighting }/>}
|
{this.state.clicked === true && <SightingDetail detail={ this.state.selectedSighting }/>}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
Loading…
Reference in New Issue