Skip to content

Commit

Permalink
fix: disable message image drag
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Dec 19, 2023
1 parent 344c91e commit 110498c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/components/chat/Messages.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,12 @@
{#each message.files as file}
<div>
{#if file.type === 'image'}
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" />
<img
src={file.url}
alt="input"
class=" max-h-96 rounded-lg"
draggable="false"
/>
{/if}
</div>
{/each}
Expand Down

0 comments on commit 110498c

Please sign in to comment.