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: remove unnecessary min-width css style from AllTools and Blocks components (#29810)

wcc0077114f17f1ca83
diff --git a/web/app/components/workflow/block-selector/all-tools.tsx b/web/app/components/workflow/block-selector/all-tools.tsx
index 08eac3f8cc5..50d10541efd 100644
--- a/web/app/components/workflow/block-selector/all-tools.tsx
+++ b/web/app/components/workflow/block-selector/all-tools.tsx
@@ -204,7 +204,7 @@ const AllTools = ({
}, [onSelect])
return (
- <div className={cn('min-w-[400px] max-w-[500px]', className)}>
+ <div className={cn('max-w-[500px]', className)}>
<div className='flex items-center justify-between border-b border-divider-subtle px-3'>
<div className='flex h-8 items-center space-x-1'>
{
diff --git a/web/app/components/workflow/block-selector/blocks.tsx b/web/app/components/workflow/block-selector/blocks.tsx
index cae1ec32a51..16256bf345f 100644
--- a/web/app/components/workflow/block-selector/blocks.tsx
+++ b/web/app/components/workflow/block-selector/blocks.tsx
@@ -134,7 +134,7 @@ const Blocks = ({
}, [groups, onSelect, t, store])
return (
- <div className='max-h-[480px] min-w-[400px] max-w-[500px] overflow-y-auto p-1'>
+ <div className='max-h-[480px] max-w-[500px] overflow-y-auto p-1'>
{
isEmpty && (
<div className='flex h-[22px] items-center px-3 text-xs font-medium text-text-tertiary'>{t('workflow.tabs.noResult')}</div>