TP-O commited on
Commit
ca616cc
1 Parent(s): 0db6ce6

Fix long word in assistant message (#214)

Browse files
src/lib/components/chat/ChatMessage.svelte CHANGED
@@ -92,7 +92,7 @@
92
  class="mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
93
  />
94
  <div
95
- class="relative min-h-[calc(2rem+theme(spacing[3.5])*2)] min-w-[100px] rounded-2xl border border-gray-100 bg-gradient-to-br from-gray-50 px-5 py-3.5 text-gray-600 prose-pre:my-2 dark:border-gray-800 dark:from-gray-800/40 dark:text-gray-300"
96
  >
97
  {#if !message.content}
98
  <IconLoading classNames="absolute inset-0 m-auto" />
 
92
  class="mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
93
  />
94
  <div
95
+ class="relative min-h-[calc(2rem+theme(spacing[3.5])*2)] min-w-[100px] break-words rounded-2xl border border-gray-100 bg-gradient-to-br from-gray-50 px-5 py-3.5 text-gray-600 prose-pre:my-2 dark:border-gray-800 dark:from-gray-800/40 dark:text-gray-300"
96
  >
97
  {#if !message.content}
98
  <IconLoading classNames="absolute inset-0 m-auto" />