feat: Intra-line double link interaction

This commit is contained in:
xiaodong zuo
2022-08-19 06:17:30 +08:00
parent a58825dd2f
commit 438d814d49
4 changed files with 38 additions and 17 deletions
@@ -1,5 +1,4 @@
/* eslint-disable max-lines */
import { SearchIcon } from '@toeverything/components/icons';
import { ErrorBoundary, isEqual } from '@toeverything/utils';
import isHotkey from 'is-hotkey';
import isUrl from 'is-url';
@@ -844,8 +843,7 @@ const EditorLeaf = ({ attributes, children, leaf }: any) => {
if (leaf.doubleLinkSearch) {
customChildren = (
<span style={{ backgroundColor: '#eee' }}>
<SearchIcon style={{ width: '16px', height: '16px' }} />
<span style={{ backgroundColor: '#eee', borderRadius: '4px' }}>
{customChildren}
</span>
);