mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
feat: Intra-line double link interaction
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user