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