diff --git a/plugins/attachment-resources/src/components/AttachmentImagePreview.svelte b/plugins/attachment-resources/src/components/AttachmentImagePreview.svelte index 18f20a481c..aba89abd57 100644 --- a/plugins/attachment-resources/src/components/AttachmentImagePreview.svelte +++ b/plugins/attachment-resources/src/components/AttachmentImagePreview.svelte @@ -100,21 +100,24 @@ return 'x-large' } + + function toStyle (size: 'auto' | number): string { + return size === 'auto' ? 'auto' : `${size}px` + } - - - -{#await getBlobRef(value.$lookup?.file, value.file, value.name, sizeToWidth(urlSize)) then blobSrc} - -{/await} +