mirror of https://github.com/fantasticit/think.git
Merge pull request #40 from fantasticit/feat/mobile
This commit is contained in:
commit
2d9f7f202a
|
@ -32,9 +32,6 @@
|
||||||
|
|
||||||
.semi-navigation-footer {
|
.semi-navigation-footer {
|
||||||
display: block;
|
display: block;
|
||||||
height: 64px;
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
|
|
||||||
.semi-navigation-collapse-btn {
|
.semi-navigation-collapse-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -20,8 +20,8 @@ export const LinkBubbleMenu = ({ editor }) => {
|
||||||
}, [href, target]);
|
}, [href, target]);
|
||||||
|
|
||||||
const openEditLinkModal = useCallback(() => {
|
const openEditLinkModal = useCallback(() => {
|
||||||
triggerOpenLinkSettingModal({ href, text, from, to });
|
triggerOpenLinkSettingModal(editor, { href, text, from, to });
|
||||||
}, [href, text, from, to]);
|
}, [editor, href, text, from, to]);
|
||||||
|
|
||||||
const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]);
|
const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue