fix(web): optimize conversation-panel Modal width adjustment logic (#21018)

pull/21048/head
HyaCinth 11 months ago committed by GitHub
parent 765189d4f5
commit d587480a3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -354,7 +354,8 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {
} }
useEffect(() => { useEffect(() => {
adjustModalWidth() const raf = requestAnimationFrame(adjustModalWidth)
return () => cancelAnimationFrame(raf)
}, []) }, [])
return ( return (

Loading…
Cancel
Save