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