Skip to content

Commit 1b2fadc

Browse files
committed
fix: prevent wrapping in SentimentVerbPicker filter bar
1 parent 1e61c16 commit 1b2fadc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/statementWizard/SentimentVerbPicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const SentimentVerbPicker: React.FC<SentimentVerbPickerProps> = ({
102102
currentCategory?.children && currentCategory.children.length > 0;
103103

104104
return (
105-
<div className='flex items-center gap-4 px-4 py-2 border-b bg-gray-100 overflow-x-auto'>
105+
<div className='flex items-center gap-2 px-4 py-2 border-b bg-gray-100 overflow-x-auto flex-nowrap whitespace-nowrap'>
106106
{/* CASE 1: No category => show "All" + top-level categories */}
107107
{isAllSelected && (
108108
<>
@@ -113,7 +113,7 @@ const SentimentVerbPicker: React.FC<SentimentVerbPickerProps> = ({
113113
<Button
114114
key={cat.id}
115115
variant='outline'
116-
className='flex items-center gap-1 text-sm'
116+
className='flex items-center gap-1 text-sm whitespace-nowrap'
117117
style={{
118118
backgroundColor: cat.color,
119119
color: getContrastColor(cat.color),

0 commit comments

Comments
 (0)