Skip to content

Commit 56d1b8f

Browse files
authored
Fix overflowing recommended follow up questions in assistant (#3502)
1 parent 054a163 commit 56d1b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gitbook/src/components/AIChat/AiChatFollowupSuggestions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ export function AIChatFollowupSuggestions(props: {
1515
}
1616

1717
return (
18-
<div className="mt-auto flex flex-row flex-wrap justify-end gap-2">
18+
<div className="mt-auto flex w-full flex-wrap justify-end gap-2">
1919
{chat.followUpSuggestions.map((suggestion, index) => (
2020
<Button
2121
key={index}
2222
onClick={() => {
2323
chatController.postMessage({ message: suggestion });
2424
}}
2525
label={suggestion}
26-
className="animate-[present_500ms_both] whitespace-normal text-left ring-1 ring-tint-subtle"
26+
className="!whitespace-normal max-w-full animate-[present_500ms_both] text-left ring-1 ring-tint-subtle"
2727
size="medium"
2828
variant="blank"
2929
style={{

0 commit comments

Comments
 (0)