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}
|
||||
on:mouseover="set({mouseover: event})"
|
||||
style="width: {inlineWidth}px; height: {inlineHeight}px;">
|
||||
{#if type === 'gifv' && $autoplayGifs}
|
||||
{#if type === 'gifv' && $autoplayGifs && !blurhash}
|
||||
<AutoplayVideo
|
||||
ariaLabel="Animated GIF: {description}"
|
||||
poster={previewUrl}
|
||||
@ -52,7 +52,7 @@
|
||||
height={inlineHeight}
|
||||
{focus}
|
||||
/>
|
||||
{:elseif type === 'gifv' && !$autoplayGifs}
|
||||
{:elseif type === 'gifv'}
|
||||
<NonAutoplayGifv
|
||||
class={noNativeWidthHeight ? 'no-native-width-height' : ''}
|
||||
label="Animated GIF: {description}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user