From 6554775a4ed1766ffe0b7ccb38ab38e287103219 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:22:34 +0000 Subject: [PATCH] fix: ensure long sentences wrap to the next line across UI components - Updated `EmptyScreen` example buttons to use `whitespace-normal`, `text-left`, and `items-start` for better multi-line support. - Added `break-words` to `BotMessage` container to prevent horizontal overflow from long strings. - Improved `SuggestionsDropdown` and `SearchRelated` buttons with wrapping and top-alignment. - Replaced filename truncation with `break-all` wrapping in `ChatPanel` file attachments. - Ensured consistent icon alignment for multi-line buttons. Co-authored-by: ngoiyaeric <115367894+ngoiyaeric@users.noreply.github.com> --- components/chat-panel.tsx | 6 +++--- components/empty-screen.tsx | 6 +++--- components/message.tsx | 2 +- components/search-related.tsx | 2 +- components/suggestions-dropdown.tsx | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx index 2a8c559e..fa0e5c56 100644 --- a/components/chat-panel.tsx +++ b/components/chat-panel.tsx @@ -292,11 +292,11 @@ export const ChatPanel = forwardRef(({ messages, i {selectedFile && (
-
- +
+ {selectedFile.name} -
diff --git a/components/empty-screen.tsx b/components/empty-screen.tsx index 2c0f63e4..ad36d7d3 100644 --- a/components/empty-screen.tsx +++ b/components/empty-screen.tsx @@ -41,14 +41,14 @@ export function EmptyScreen({ ); })} diff --git a/components/message.tsx b/components/message.tsx index 264aa1f6..07534046 100644 --- a/components/message.tsx +++ b/components/message.tsx @@ -18,7 +18,7 @@ export function BotMessage({ content }: { content: StreamableValue }) { const processedData = preprocessLaTeX(data || '') return ( -
+
= ({ ) })}