Fix: Long strings overflow out of message bubble in docs assistant (#3588)

This commit is contained in:
Zeno Kapitein
2025-08-22 19:23:05 +02:00
committed by GitHub
parent 854c448bad
commit 2e6e28eb54
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Fix: Long strings overflow out of message bubble in docs assistant
@@ -167,7 +167,7 @@ async function DescriptionForSearchToolCall(props: {
hasResults ? '-my-2 cursor-pointer py-2 hover:bg-primary-hover' : ''
)}
>
<div className="flex flex-col leading-snug">
<div className="flex min-w-0 flex-col break-words leading-snug">
<p>{t(language, 'searched_for', <strong>{toolCall.query}</strong>)}</p>
<p className="mt-0.5 text-tint-subtle text-xs">
{hasResults
@@ -32,6 +32,7 @@ export function AIChatMessages(props: {
'scroll-mt-36',
'lg:scroll-mt-0',
'flex flex-col gap-6',
'break-words',
'group/message',
message.role === AIMessageRole.User
? 'max-w-[80%] self-end circular-corners:rounded-2xl rounded-corners:rounded-md bg-tint px-4 py-2'