diff --git a/web/src/components/Tag/index.tsx b/web/src/components/Tag/index.tsx index 7f31ef47..f07f5cad 100644 --- a/web/src/components/Tag/index.tsx +++ b/web/src/components/Tag/index.tsx @@ -33,7 +33,7 @@ const colors = { warning: 'rb:text-[#FF5D34] rb:border-[rgba(255,93,52,0.30)] rb:bg-[rgba(255,93,52,0.08)]', default: 'rb:text-[#5B6167] rb:border-[rgba(91,97,103,0.30)] rb:bg-[rgba(91,97,103,0.08)]', purple: 'rb:text-[#9C6FFF] rb:border-[rgba(156,111,255,0.25)] rb:bg-[rgba(156,111,255,0.06)]', - dark: 'rb:text-[#171719] rb:border-[rgba(23,23,25,0.25)] rb:border-[rgba(23,23,25,0.06)]' + dark: 'rb:text-[#171719] rb:border-[rgba(23,23,25,0.25)] rb:bg-[rgba(23,23,25,0.06)]' } /** Custom tag component with color themes */ diff --git a/web/src/views/ApplicationManagement/MySharing.tsx b/web/src/views/ApplicationManagement/MySharing.tsx index f4ec14f5..8fb5b2c0 100644 --- a/web/src/views/ApplicationManagement/MySharing.tsx +++ b/web/src/views/ApplicationManagement/MySharing.tsx @@ -102,7 +102,7 @@ const MySharing: React.FC = () => { setSelectedWorkspace(grouped[0].workspace.target_workspace_id) setAppList(grouped[0].items) } - }, [grouped]) + }, [grouped, selectedWorkspace]) const handleSelectWorkspace = async (target_workspace_id: string) => { if (target_workspace_id === selectedWorkspace) return diff --git a/web/src/views/Workflow/components/Editor/index.tsx b/web/src/views/Workflow/components/Editor/index.tsx index 5f346e6e..119c17db 100644 --- a/web/src/views/Workflow/components/Editor/index.tsx +++ b/web/src/views/Workflow/components/Editor/index.tsx @@ -103,8 +103,8 @@ const Editor: FC =({ // Calculate line height based on size prop const lineHeight = useMemo(() => { - return `${height ? height - 10 : size === 'small' && ['borderless', 'filled'].includes(variant) ? 18 : size === 'small' ? 16 : 20}px` - }, [size]) + return `${height ? height - 10 : size === 'small' && variant === 'borderless' ? 18 : size === 'small' ? 16 : 20}px` + }, [size, height, variant]) // Calculate placeholder minimum height const placeHolderMinheight = useMemo(() => {