mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 11:58:41 +00:00
@@ -129,8 +129,12 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
|
||||
if (clientHeight - rectTop <= COMMAND_MENU_HEIGHT) {
|
||||
setCommandMenuPosition({
|
||||
left: rect.left - left,
|
||||
bottom: rectTop - top + 10,
|
||||
top: 'initial',
|
||||
top:
|
||||
rectTop -
|
||||
top -
|
||||
COMMAND_MENU_HEIGHT +
|
||||
20,
|
||||
bottom: 'initial',
|
||||
});
|
||||
} else {
|
||||
setCommandMenuPosition({
|
||||
|
||||
Reference in New Issue
Block a user