This commit is contained in:
Joseph Roberts 2025-12-11 20:31:13 +01:00 committed by GitHub
commit 4f6d3de26f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 4 deletions

View file

@ -338,7 +338,10 @@
<Skeleton />
</div>
{:else if (message?.data?.files ?? []).length > 0}
<div class="my-2.5 w-full flex overflow-x-auto gap-2 flex-wrap">
<div
class="my-2.5 w-full flex overflow-x-auto gap-2 flex-wrap"
dir={$settings?.chatDirection ?? 'auto'}
>
{#each message?.data?.files as file}
<div>
{#if file.type === 'image' || (file?.content_type ?? '').startsWith('image/')}

View file

@ -1139,7 +1139,10 @@
{/if}
{#if files.length > 0}
<div class="mx-2 mt-2.5 pb-1.5 flex items-center flex-wrap gap-2">
<div
class="mx-2 mt-2.5 pb-1.5 flex items-center flex-wrap gap-2"
dir={$settings?.chatDirection ?? 'auto'}
>
{#each files as file, fileIdx}
{#if file.type === 'image'}
<div class=" relative group">

View file

@ -666,7 +666,10 @@
{/if}
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
<div class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap">
<div
class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap"
dir={$settings?.chatDirection ?? 'auto'}
>
{#each message.files as file}
<div>
{#if file.type === 'image'}

View file

@ -188,7 +188,10 @@
<div class="chat-{message.role} w-full min-w-full markdown-prose">
{#if edit !== true}
{#if message.files}
<div class="mb-1 w-full flex flex-col justify-end overflow-x-auto gap-1 flex-wrap">
<div
class="mb-1 w-full flex flex-col justify-end overflow-x-auto gap-1 flex-wrap"
dir={$settings?.chatDirection ?? 'auto'}
>
{#each message.files as file}
<div class={($settings?.chatBubble ?? true) ? 'self-end' : ''}>
{#if file.type === 'image'}