refactor: redundant check
This commit is contained in:
1 parent
1a81c6c1a5
commit
df0a44b9c2
1 file changed
+3
-5
@@ -17,11 +17,10 @@
|
|||||||
export let type: MediaType = 'none'
|
export let type: MediaType = 'none'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if view == 'compact' || view == 'list'}
|
<div
|
||||||
<div
|
|
||||||
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
|
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
|
||||||
style={$$props.style ?? ''}
|
style={$$props.style ?? ''}
|
||||||
>
|
>
|
||||||
{#if post.alt_text}
|
{#if post.alt_text}
|
||||||
<Popover
|
<Popover
|
||||||
openOnHover
|
openOnHover
|
||||||
@@ -88,5 +87,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:element>
|
</svelte:element>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
|
||||||
Reference in new issue
Block a user