From f769002a9cec1488dd3e86acf5f745143d9b1de2 Mon Sep 17 00:00:00 2001 From: jZonG Date: Tue, 29 Apr 2025 17:39:12 +0800 Subject: [PATCH] fix variable inspect panel height resize --- web/app/components/workflow/variable-inspect/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/variable-inspect/index.tsx b/web/app/components/workflow/variable-inspect/index.tsx index c51429b882..2761dcae3c 100644 --- a/web/app/components/workflow/variable-inspect/index.tsx +++ b/web/app/components/workflow/variable-inspect/index.tsx @@ -21,8 +21,9 @@ const VariableInspectPanel: FC = () => { return workflowCanvasHeight - 60 }, [workflowCanvasHeight]) - const handleResize = useCallback((width: number) => { - setVariableInspectPanelHeight(width) + const handleResize = useCallback((width: number, height: number) => { + localStorage.setItem('workflow-variable-inpsect-panel-height', `${height}`) + setVariableInspectPanelHeight(height) }, [setVariableInspectPanelHeight]) const {