diff --git a/ui/src/routes/conversations/[id]/+page.svelte b/ui/src/routes/conversations/[id]/+page.svelte index 18dd7479..bc30edd3 100644 --- a/ui/src/routes/conversations/[id]/+page.svelte +++ b/ui/src/routes/conversations/[id]/+page.svelte @@ -242,7 +242,7 @@ } } - function handleOpenImageLightbox(e: PointerEvent, url: string) { + function handleOpenImageLightbox(e: PointerEvent | MouseEvent, url: string) { const targetImg = e.target as HTMLImageElement; biggerPicture.open({ items: [ @@ -382,22 +382,21 @@ {/if} {#if message.images && message.images.length > 0} {#each message.images as image} - {#if image.status === 'loaded'} - -
+
+ {#if image.status === 'loading' || image.status === 'pending'} +
+ +
+ {:else if image.status === 'error'} +
+ +
+ {:else if image.status === 'loaded'} + {/if}
- {:else if image.status === 'loading' || image.status === 'pending'} -
- -
- {:else} -
- -
- {/if} {/each} {/if}