Create a seamless transition. (#26745)

Signed-off-by: Youssef Awichawi <youssef3wi@icloud.com>
This commit is contained in:
Aouichaoui Youssef 2024-02-20 14:18:05 +01:00 committed by GitHub
parent 767ae13db4
commit 25132477a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -273,7 +273,7 @@ export const FlowDiagram = ({
}, [expandableList]); }, [expandableList]);
const onInit = (reactFlowInstance: ReactFlowInstance) => const onInit = (reactFlowInstance: ReactFlowInstance) =>
reactFlowInstance.fitView(); reactFlowInstance.fitView({ duration: 100 });
const onNodeClick: NodeMouseHandler = () => { const onNodeClick: NodeMouseHandler = () => {
setExpandDrawer(!expandDrawer); setExpandDrawer(!expandDrawer);