Skip to content

Commit

Permalink
删除多余判断
Browse files Browse the repository at this point in the history
  • Loading branch information
umodoc committed Sep 20, 2024
1 parent 56e8193 commit 028b9ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/composables/node-postion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ export const useNodePostion = () => {
// 微修正菜单位置
offsetTop = currentNode.tagName === 'DIV' ? offsetTop - 8 : offsetTop - 5

if (currentNode.classList.contains('ProseMirror-gapcursor')) {
offsetTop = offsetTop + 5
}
if (
editor.value.isActive('horizontalRule') ||
editor.value.isActive('table') ||
Expand Down

0 comments on commit 028b9ce

Please sign in to comment.