diff --git a/lib/folk-prompt.ts b/lib/folk-prompt.ts index 5cfed84..d36c9c8 100644 --- a/lib/folk-prompt.ts +++ b/lib/folk-prompt.ts @@ -60,6 +60,7 @@ const styles = css` .messages { flex: 1; + min-height: 0; overflow-y: auto; padding: 12px; display: flex; @@ -73,6 +74,8 @@ const styles = css` border-radius: 12px; font-size: 13px; line-height: 1.5; + overflow-wrap: break-word; + word-break: break-word; } .message.user { @@ -300,6 +303,7 @@ const styles = css` overflow-x: auto; font-size: 12px; margin: 8px 0; + max-width: 100%; } code { @@ -440,16 +444,8 @@ export class FolkPrompt extends FolkShape {