fix: Word wrapping

This commit is contained in:
Aleksander Grygier 2026-01-15 17:59:57 +01:00
parent 5417a439ef
commit cffc3b46ae
2 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,7 @@
<Card
class="max-w-[80%] overflow-y-auto rounded-[1.125rem] border-none bg-primary/5 px-3.75 py-1.5 text-foreground backdrop-blur-md data-[multiline]:py-2.5 dark:bg-primary/15"
data-multiline={isMultiline ? '' : undefined}
style="max-height: calc(100dvh - var(--chat-form-area-height));"
style="max-height: calc(100dvh - var(--chat-form-area-height)); overflow-wrap: anywhere; word-break: break-word;"
>
{#if currentConfig.renderUserContentAsMarkdown}
<div bind:this={messageElement} class="text-md">

View File

@ -536,6 +536,8 @@
text-decoration: underline;
text-underline-offset: 2px;
transition: color 0.2s ease;
overflow-wrap: anywhere;
word-break: break-all;
}
div :global(a:hover) {