Commit
•
dbd3d72
1
Parent(s):
8bb1351
Break long word in user message (#209)
Browse filesCo-authored-by: Eliott C <[email protected]>
src/lib/components/chat/ChatMessage.svelte
CHANGED
@@ -116,7 +116,9 @@
|
|
116 |
{#if message.from === "user"}
|
117 |
<div class="group relative flex items-start justify-start gap-4 max-sm:text-sm">
|
118 |
<div class="mt-5 h-3 w-3 flex-none rounded-full" />
|
119 |
-
<div
|
|
|
|
|
120 |
{message.content.trim()}
|
121 |
</div>
|
122 |
{#if !loading}
|
|
|
116 |
{#if message.from === "user"}
|
117 |
<div class="group relative flex items-start justify-start gap-4 max-sm:text-sm">
|
118 |
<div class="mt-5 h-3 w-3 flex-none rounded-full" />
|
119 |
+
<div
|
120 |
+
class="max-w-full whitespace-break-spaces break-words rounded-2xl px-5 py-3.5 text-gray-500 dark:text-gray-400"
|
121 |
+
>
|
122 |
{message.content.trim()}
|
123 |
</div>
|
124 |
{#if !loading}
|