You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I would like to have a combobox component, with a scrollable area. I set a fixed width to 200px. The problem is when the number of characters exceeds the width, my truncate attribute (from tailwindcss) doesn't work because of the ScrollArea. I tried without it and it works. Do you have a solution for using truncate with ScrollArea?
My code:
<CommandGroupheading={'Wallets'}><ScrollAreaclassName='h-[96px]'>{wallets.map(wallet=>(<CommandItemkey={wallet.id}onSelect={()=>{setWallet(wallet)setPopoverOpen(false)}}className='text-sm'><AvatarclassName='mr-2 h-5 w-5'><AvatarImagesrc={`https://avatar.vercel.sh/${wallet.id}.png`}alt={wallet.name}/><AvatarFallback/></Avatar><spanclassName='flex-auto truncate'>{wallet.name}</span> <----- HERE
{selectWallet?.id===wallet.id&&(<Icons.checkclassName='h-4 w-4'/>)}</CommandItem>))}</ScrollArea></CommandGroup>
Screenshot:
The text was updated successfully, but these errors were encountered:
Hello, I would like to have a combobox component, with a scrollable area. I set a fixed width to 200px. The problem is when the number of characters exceeds the width, my
truncate
attribute (from tailwindcss) doesn't work because of the ScrollArea. I tried without it and it works. Do you have a solution for using truncate with ScrollArea?My code:
Screenshot:
The text was updated successfully, but these errors were encountered: