mirror of
https://github.com/langgenius/dify.git
synced 2025-11-11 17:04:48 +00:00
fix(web): optimize conversation-panel Modal width adjustment logic (#21018)
This commit is contained in:
parent
765189d4f5
commit
d587480a3e
@ -354,7 +354,8 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
adjustModalWidth()
|
const raf = requestAnimationFrame(adjustModalWidth)
|
||||||
|
return () => cancelAnimationFrame(raf)
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user