Merge pull request #40 from fantasticit/feat/mobile

This commit is contained in:
fantasticit 2022-05-04 19:59:25 +08:00 committed by GitHub
commit 2d9f7f202a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -32,9 +32,6 @@
.semi-navigation-footer {
display: block;
height: 64px;
padding-top: 0;
padding-bottom: 0;
.semi-navigation-collapse-btn {
display: flex;

View File

@ -20,8 +20,8 @@ export const LinkBubbleMenu = ({ editor }) => {
}, [href, target]);
const openEditLinkModal = useCallback(() => {
triggerOpenLinkSettingModal({ href, text, from, to });
}, [href, text, from, to]);
triggerOpenLinkSettingModal(editor, { href, text, from, to });
}, [editor, href, text, from, to]);
const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]);