fix(components/media): Handling of grouped videos (#1409)

* fix(components/media): Handling of grouped videos

Fixes #1404

* fix(status/media): Wrap in a div
This commit is contained in:
Sorin Davidoi 2019-08-20 04:01:35 +02:00 committed by Nolan Lawson
parent a895abe2c9
commit acb134e518

View file

@ -1,17 +1,19 @@
{#if type === 'video' || type === 'audio'}
{#if blurhash}
{#if type === 'video'}
<LazyImage
alt={description}
title={description}
src={previewUrl}
fallback={oneTransparentPixel}
blurhash={blurhash}
width={inlineWidth}
height={inlineHeight}
background="var(--loading-bg)"
{focus}
/>
<div>
<LazyImage
alt={description}
title={description}
src={previewUrl}
fallback={oneTransparentPixel}
blurhash={blurhash}
width={inlineWidth}
height={inlineHeight}
background="var(--loading-bg)"
{focus}
/>
</div>
{/if}
{:else}
<button id={elementId}