From ae444117e0f50decd3653da7f57407d19a7ec282 Mon Sep 17 00:00:00 2001 From: "longhe.li" Date: Mon, 19 Jan 2026 14:18:54 +0800 Subject: [PATCH 1/4] 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 (
Date: Wed, 21 Jan 2026 14:03:56 +0800 Subject: [PATCH 2/4] fix: code format --- web/src/components/MemoEditor/Editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx index 5c3baa78f..0940e8077 100644 --- a/web/src/components/MemoEditor/Editor/index.tsx +++ b/web/src/components/MemoEditor/Editor/index.tsx @@ -184,7 +184,7 @@ const Editor = forwardRef(function Editor(props: EditorProps, ref: React.Forward // focus mode scroll height is handled by flex layout useEffect(() => { updateEditorHeight(); - }, [isFocusMode]) + }, [isFocusMode]); return (
Date: Thu, 22 Jan 2026 09:33:04 +0800 Subject: [PATCH 3/4] Update web/src/components/MemoEditor/Editor/index.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: longhe.li --- web/src/components/MemoEditor/Editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx index 0940e8077..e03875c3c 100644 --- a/web/src/components/MemoEditor/Editor/index.tsx +++ b/web/src/components/MemoEditor/Editor/index.tsx @@ -184,7 +184,7 @@ const Editor = forwardRef(function Editor(props: EditorProps, ref: React.Forward // focus mode scroll height is handled by flex layout useEffect(() => { updateEditorHeight(); - }, [isFocusMode]); + }, [isFocusMode, updateEditorHeight]); return (
Date: Thu, 22 Jan 2026 09:33:13 +0800 Subject: [PATCH 4/4] Update web/src/components/MemoEditor/Editor/index.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: longhe.li --- web/src/components/MemoEditor/Editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx index e03875c3c..9b0b650a8 100644 --- a/web/src/components/MemoEditor/Editor/index.tsx +++ b/web/src/components/MemoEditor/Editor/index.tsx @@ -181,7 +181,7 @@ const Editor = forwardRef(function Editor(props: EditorProps, ref: React.Forward isInIME, }); - // focus mode scroll height is handled by flex layout + // Recalculate editor height when focus mode changes useEffect(() => { updateEditorHeight(); }, [isFocusMode, updateEditorHeight]);