From 2ec19f6b47b489d258b612a086861217220add23 Mon Sep 17 00:00:00 2001 From: Alex Kwiatkowski Date: Wed, 24 Dec 2025 16:47:15 -0800 Subject: [PATCH] fix: horizontal scroll for suggestion chips on mobile - Change from flex-wrap to horizontal scroll on mobile - Keep flex-wrap behavior on desktop (sm: breakpoint) - Add scrollbar-hide utility to hide scrollbar on iOS/Android - Add whitespace-nowrap and shrink-0 to prevent chip text wrapping --- src/features/chat/components/SuggestionChips.tsx | 11 +++++++++-- src/styles/global.css | 11 +++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/features/chat/components/SuggestionChips.tsx b/src/features/chat/components/SuggestionChips.tsx index cf14d93..8759cfe 100644 --- a/src/features/chat/components/SuggestionChips.tsx +++ b/src/features/chat/components/SuggestionChips.tsx @@ -9,14 +9,21 @@ interface SuggestionChipsProps { export function SuggestionChips({ options, onSelect, className }: SuggestionChipsProps) { return ( -
+
{options.map((option) => (