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): optimize conversation-panel Modal width adjustment logic (#21018)

HyaCinthd587480a3e4c
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx
index 3062e3a911e..208fddecd11 100644
--- a/web/app/components/app/log/list.tsx
+++ b/web/app/components/app/log/list.tsx
@@ -354,7 +354,8 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {
}
useEffect(() => {
- adjustModalWidth()
+ const raf = requestAnimationFrame(adjustModalWidth)
+ return () => cancelAnimationFrame(raf)
}, [])
return (