mirror of
https://github.com/nolanlawson/pinafore
synced 2025-02-01 06:16:47 +01:00
fix(components/media): Autoplay and blurhash (#1400)
Fixes https://github.com/nolanlawson/pinafore/issues/1399.
This commit is contained in:
parent
823a7abebf
commit
94cf7df954
@ -43,7 +43,7 @@
|
|||||||
title={description}
|
title={description}
|
||||||
on:mouseover="set({mouseover: event})"
|
on:mouseover="set({mouseover: event})"
|
||||||
style="width: {inlineWidth}px; height: {inlineHeight}px;">
|
style="width: {inlineWidth}px; height: {inlineHeight}px;">
|
||||||
{#if type === 'gifv' && $autoplayGifs}
|
{#if type === 'gifv' && $autoplayGifs && !blurhash}
|
||||||
<AutoplayVideo
|
<AutoplayVideo
|
||||||
ariaLabel="Animated GIF: {description}"
|
ariaLabel="Animated GIF: {description}"
|
||||||
poster={previewUrl}
|
poster={previewUrl}
|
||||||
@ -52,7 +52,7 @@
|
|||||||
height={inlineHeight}
|
height={inlineHeight}
|
||||||
{focus}
|
{focus}
|
||||||
/>
|
/>
|
||||||
{:elseif type === 'gifv' && !$autoplayGifs}
|
{:elseif type === 'gifv'}
|
||||||
<NonAutoplayGifv
|
<NonAutoplayGifv
|
||||||
class={noNativeWidthHeight ? 'no-native-width-height' : ''}
|
class={noNativeWidthHeight ? 'no-native-width-height' : ''}
|
||||||
label="Animated GIF: {description}"
|
label="Animated GIF: {description}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user