Skip to content

Commit

Permalink
fix: selection too long break ui (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Dec 22, 2023
1 parent 2c8badf commit 6da3a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app/components/base/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Select: FC<ISelectProps> = ({
setOpen(!open)
}
} className={`flex items-center h-9 w-full rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-gray-200 group-hover:bg-gray-200`}>
{selectedItem?.name}
<div className='w-0 grow text-left truncate' title={selectedItem?.name}>{selectedItem?.name}</div>
</Combobox.Button>}
<Combobox.Button className="absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none group-hover:bg-gray-200" onClick={
() => {
Expand Down Expand Up @@ -290,7 +290,7 @@ const PortalSelect: FC<PortalSelectProps> = ({
}}
>
<span
className='grow truncate'
className='w-0 grow truncate'
title={item.name}
>
{item.name}
Expand Down

0 comments on commit 6da3a33

Please sign in to comment.