From ae444117e0f50decd3653da7f57407d19a7ec282 Mon Sep 17 00:00:00 2001 From: "longhe.li" Date: Mon, 19 Jan 2026 14:18:54 +0800 Subject: [PATCH] fix: toggle focus mode do not reset editor height Signed-off-by: longhe.li --- web/src/components/MemoEditor/Editor/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx index 0ef458f9e..5c3baa78f 100644 --- a/web/src/components/MemoEditor/Editor/index.tsx +++ b/web/src/components/MemoEditor/Editor/index.tsx @@ -181,6 +181,11 @@ const Editor = forwardRef(function Editor(props: EditorProps, ref: React.Forward isInIME, }); + // focus mode scroll height is handled by flex layout + useEffect(() => { + updateEditorHeight(); + }, [isFocusMode]) + return (