fix: toggle focus mode do not reset editor height

Signed-off-by: longhe.li <lilonghe@outlook.com>
This commit is contained in:
longhe.li 2026-01-19 14:18:54 +08:00 committed by GitHub
parent dc7ec8a8ad
commit ae444117e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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 (
<div
className={cn(