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(web): resolve readme-panel display and styling issues (#28658)

yangzhelib502d30e7787
diff --git a/web/app/components/plugins/readme-panel/entrance.tsx b/web/app/components/plugins/readme-panel/entrance.tsx
index f3b4c984126..ba4bf8fa78f 100644
--- a/web/app/components/plugins/readme-panel/entrance.tsx
+++ b/web/app/components/plugins/readme-panel/entrance.tsx
@@ -24,7 +24,7 @@ export const ReadmeEntrance = ({
if (pluginDetail)
setCurrentPluginDetail(pluginDetail, showType)
}
- if (!pluginDetail || BUILTIN_TOOLS_ARRAY.includes(pluginDetail.id))
+ if (!pluginDetail || !pluginDetail?.plugin_unique_identifier || BUILTIN_TOOLS_ARRAY.includes(pluginDetail.id))
return null
return (
diff --git a/web/app/components/plugins/readme-panel/index.tsx b/web/app/components/plugins/readme-panel/index.tsx
index 70d1e0db2c1..cae5413c7c8 100644
--- a/web/app/components/plugins/readme-panel/index.tsx
+++ b/web/app/components/plugins/readme-panel/index.tsx
@@ -86,18 +86,21 @@ const ReadmePanel: FC = () => {
const portalContent = showType === ReadmeShowType.drawer
? (
- <div className='pointer-events-none fixed inset-0 z-[9997] flex justify-start'>
+ <div className='fixed inset-0 z-[999] flex justify-start' onClick={onClose}>
<div
className={cn(
'pointer-events-auto mb-2 ml-2 mr-2 mt-16 w-[600px] max-w-[600px] justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0 shadow-xl',
)}
+ onClick={(event) => {
+ event.stopPropagation()
+ }}
>
{children}
</div>
</div>
)
: (
- <div className='pointer-events-none fixed inset-0 z-[9997] flex items-center justify-center p-2'>
+ <div className='fixed inset-0 z-[999] flex items-center justify-center p-2' onClick={onClose}>
<div
className={cn(
'pointer-events-auto relative h-[calc(100vh-16px)] w-full max-w-[800px] rounded-2xl bg-components-panel-bg p-0 shadow-xl',