Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: selection too long break ui (#1826)

Joel6da3a33e6cd4
diff --git a/web/app/components/base/select/index.tsx b/web/app/components/base/select/index.tsx
index 44bdc7c15f7..471692b9bc6 100644
--- a/web/app/components/base/select/index.tsx
+++ b/web/app/components/base/select/index.tsx
@@ -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={
() => {
@@ -290,7 +290,7 @@ const PortalSelect: FC<PortalSelectProps> = ({
}}
>
<span
- className='grow truncate'
+ className='w-0 grow truncate'
title={item.name}
>
{item.name}