mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
restyle next/prev arrows
This commit is contained in:
@@ -6,9 +6,9 @@ export default ({ viewIdx, paths, onShiftHandler }) => {
|
||||
className='back'
|
||||
onClick={() => onShiftHandler(-1)}
|
||||
>
|
||||
<svg>
|
||||
<path d='M0,-7.847549217020565L6.796176979388489,3.9237746085102825L-6.796176979388489,3.9237746085102825Z' />
|
||||
</svg>
|
||||
<div className='centerer'>
|
||||
<i className='material-icons'>arrow_left</i>
|
||||
</div>
|
||||
</div>
|
||||
) : null
|
||||
const forwardArrow = viewIdx < paths.length - 1 ? (
|
||||
@@ -16,9 +16,9 @@ export default ({ viewIdx, paths, onShiftHandler }) => {
|
||||
className='next'
|
||||
onClick={() => onShiftHandler(1)}
|
||||
>
|
||||
<svg>
|
||||
<path d='M0,-7.847549217020565L6.796176979388489,3.9237746085102825L-6.796176979388489,3.9237746085102825Z' />
|
||||
</svg>
|
||||
<div className='centerer'>
|
||||
<i className='material-icons'>arrow_right</i>
|
||||
</div>
|
||||
</div>
|
||||
) : null
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@ class SourceOverlay extends React.Component {
|
||||
if (typeof (this.props.source) !== 'object') {
|
||||
return this.renderError()
|
||||
}
|
||||
const { url, title, paths, date, type, desc } = this.props.source
|
||||
const shortenedTitle = this.props.source.title.substring(0, 100)
|
||||
const { url, title, paths, date, type } = this.props.source
|
||||
const shortenedTitle = title.substring(0, 100)
|
||||
|
||||
return (
|
||||
<div className='mo-overlay' onClick={this.props.onCancel}>
|
||||
<div className='mo-overlay'>
|
||||
<div className='mo-banner'>
|
||||
<div className='mo-banner-close' onClick={this.props.onCancel}>
|
||||
<i className='material-icons'>close</i>
|
||||
|
||||
Reference in New Issue
Block a user