From 9b20d50659c56f5777971d42791a54ef8e9d73f2 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 10 Jan 2026 21:20:26 +0000 Subject: [PATCH] fix(ui): resolve text overflow issues This commit addresses several UI text overflow issues across the application. - Standardized the mobile breakpoint to 1024px in `components/chat.tsx` to match the CSS media queries. - Removed `whitespace-nowrap` from the base `Button` component in `components/ui/button.tsx` to allow button text to wrap by default. - Refactored the settings tabs in `components/settings/components/settings.tsx` to use the `Button` component, fixing the overflow on smaller screens. - Removed `whitespace-nowrap` from the label in `components/copilot.tsx` to allow long checkbox labels to wrap. --- components/chat.tsx | 2 +- components/copilot.tsx | 2 +- components/settings/components/settings.tsx | 16 ++++++++++++---- components/ui/button.tsx | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/components/chat.tsx b/components/chat.tsx index e4dc13a8..07967701 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -44,7 +44,7 @@ export function Chat({ id }: ChatProps) { useEffect(() => { // Check if device is mobile const checkMobile = () => { - setIsMobile(window.innerWidth < 768) + setIsMobile(window.innerWidth < 1024) } // Initial check diff --git a/components/copilot.tsx b/components/copilot.tsx index b62b37ed..53fc4b9b 100644 --- a/components/copilot.tsx +++ b/components/copilot.tsx @@ -146,7 +146,7 @@ export const Copilot: React.FC = ({ inquiry }: CopilotProps) => { } />