Add ability to show or hide back and forward buttons
This commit is contained in:
parent
6c0ce61d0b
commit
2370518319
1 changed files with 7 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
const {
|
||||
Title,
|
||||
Live,
|
||||
ShowBackAndForward,
|
||||
SeekColor = '#2185d0'
|
||||
} = Astro.props
|
||||
|
||||
|
@ -24,8 +25,11 @@ import './Styles/Iconoir.css'
|
|||
{Live ?
|
||||
null
|
||||
:
|
||||
ShowBackAndForward ?
|
||||
<button id="vc-backwards"><i class="iconoir-rewind-solid"></i></button>
|
||||
<button id="vc-forwards"><i class="iconoir-forward-solid"></i></button>
|
||||
:
|
||||
null
|
||||
}
|
||||
<div class="vc-volume-controller">
|
||||
<button><i class="iconoir-sound-high-solid"></i></button>
|
||||
|
@ -41,7 +45,7 @@ import './Styles/Iconoir.css'
|
|||
:
|
||||
<div class="vc-seek">
|
||||
<span style={`background: ${SeekColor}`} class="vc-progress-bar"></span>
|
||||
<input class="seek" id="seek" value="0" min="0" type="range" step="1"/>
|
||||
<input class="seek" id="seek" value="0" min="0" aria-valuenow="1" type="range" step="1"/>
|
||||
</div>
|
||||
<p class="timestamp">
|
||||
<span class="seek-tooltip" id="seek-tooltip">00:00</span>
|
||||
|
|
Loading…
Reference in a new issue