mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 16:55:57 +08:00
fix: selection too long break ui (#1826)
This commit is contained in:
parent
2c8badfea9
commit
6da3a33e6c
@ -98,7 +98,7 @@ const Select: FC<ISelectProps> = ({
|
|||||||
setOpen(!open)
|
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`}>
|
} 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>}
|
||||||
<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={
|
<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={
|
||||||
() => {
|
() => {
|
||||||
@ -290,7 +290,7 @@ const PortalSelect: FC<PortalSelectProps> = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className='grow truncate'
|
className='w-0 grow truncate'
|
||||||
title={item.name}
|
title={item.name}
|
||||||
>
|
>
|
||||||
{item.name}
|
{item.name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user