Fix 'extra-lint' errors
This commit is contained in:
@@ -797,7 +797,10 @@ function renderPreview (state) {
|
|||||||
const xPos = Math.min(Math.max(preview.x - (width / 2), 5), windowWidth - width - 5)
|
const xPos = Math.min(Math.max(preview.x - (width / 2), 5), windowWidth - width - 5)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ position: 'absolute', bottom: 50, left: xPos, display: preview.hide && 'none' }} key='preview'>
|
<div
|
||||||
|
key='preview'
|
||||||
|
style={{ position: 'absolute', bottom: 50, left: xPos, display: preview.hide && 'none' }}
|
||||||
|
>
|
||||||
<div style={{ width, height, backgroundColor: 'black' }}>
|
<div style={{ width, height, backgroundColor: 'black' }}>
|
||||||
<video
|
<video
|
||||||
src={Playlist.getCurrentLocalURL(state)}
|
src={Playlist.getCurrentLocalURL(state)}
|
||||||
@@ -805,7 +808,13 @@ function renderPreview (state) {
|
|||||||
style={{ border: '1px solid lightgrey', borderRadius: 2 }}
|
style={{ border: '1px solid lightgrey', borderRadius: 2 }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p style={{ textAlign: 'center', margin: 5, textShadow: '0 0 2px rgba(0,0,0,.5)', color: '#eee' }}>{formatTime(preview.time, state.playing.duration)}</p>
|
<p
|
||||||
|
style={{
|
||||||
|
textAlign: 'center', margin: 5, textShadow: '0 0 2px rgba(0,0,0,.5)', color: '#eee'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{formatTime(preview.time, state.playing.duration)}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user