Disable attachment image preview (#3354)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-06-06 13:30:39 +06:00 committed by GitHub
parent 9113ca1b23
commit 4f2a079ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,13 +79,16 @@
on:click={clickHandler}
on:mousedown={middleClickHandler}
>
<div
<!-- <div
class="flex-center icon"
class:svg={value.type === 'image/svg+xml'}
class:image={isImage(value.type)}
style:background-image={isImage(value.type) ? `url(${getFileUrl(value.file, 'large')})` : 'none'}
>
{#if !isImage(value.type)}{iconLabel(value.name)}{/if}
</div> -->
<div class="flex-center icon">
{iconLabel(value.name)}
</div>
</a>
<div class="flex-col info-container">