This commit is contained in:
Jon McClure 2022-08-26 20:24:34 +01:00
parent abc292ecb5
commit 79f3de42c2

View file

@ -163,9 +163,9 @@
on:pausePlayEvent="{pausePlayEvent}" on:pausePlayEvent="{pausePlayEvent}"
paused="{paused}" paused="{paused}"
clickedOnPauseBtn="{clickedOnPauseBtn}" clickedOnPauseBtn="{clickedOnPauseBtn}"
controlsOpacity="{hoverToSeeControls controlsOpacity="{hoverToSeeControls ?
? interactiveControlsOpacity interactiveControlsOpacity :
: controlsOpacity}" controlsOpacity}"
controlsPosition="{controlsPosition}" controlsPosition="{controlsPosition}"
widthVideoContainer="{widthVideoContainer}" widthVideoContainer="{widthVideoContainer}"
heightVideoContainer="{heightVideoContainer}" heightVideoContainer="{heightVideoContainer}"
@ -196,9 +196,9 @@
bind:paused bind:paused
bind:clientWidth="{widthVideo}" bind:clientWidth="{widthVideo}"
bind:clientHeight="{heightVideo}" bind:clientHeight="{heightVideo}"
style="{showControls style="{showControls ?
? 'position: relative' 'position: relative' :
: 'position: relative'}" 'position: relative'}"
> >
<track kind="captions" /> <track kind="captions" />
</video> </video>
@ -257,7 +257,7 @@
</div> </div>
{/if} {/if}
{#if caption} {#if caption}
<figcaption>{caption}</figcaption> <div class="caption">{caption}</div>
{/if} {/if}
{/if} {/if}
</div> </div>
@ -284,7 +284,7 @@
white-space: nowrap !important; white-space: nowrap !important;
border: 0 !important; border: 0 !important;
} }
figcaption { div.caption {
font-size: 0.8rem; font-size: 0.8rem;
color: var(--theme-colour-text-secondary, $tr-medium-grey); color: var(--theme-colour-text-secondary, $tr-medium-grey);
} }