mirror of https://github.com/usememos/memos.git
Update web/src/components/MemoEditor/Editor/index.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: longhe.li <lilonghe@outlook.com>
This commit is contained in:
parent
0baee523d8
commit
99819cbeec
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue