refactor(editor): update yt delete button
This commit is contained in:
parent
e384bae945
commit
e40ec6c5aa
@ -26,6 +26,8 @@ export const YoutubeDirectiveDescriptor: DirectiveDescriptor<YoutubeDirectiveNod
|
||||
>
|
||||
<button
|
||||
type='button'
|
||||
title='delete'
|
||||
className='btnMain'
|
||||
onClick={() => {
|
||||
parentEditor.update(() => {
|
||||
lexicalNode.selectNext()
|
||||
@ -33,7 +35,15 @@ export const YoutubeDirectiveDescriptor: DirectiveDescriptor<YoutubeDirectiveNod
|
||||
})
|
||||
}}
|
||||
>
|
||||
delete
|
||||
<svg
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
viewBox='0 0 448 512'
|
||||
width='1em'
|
||||
height='1em'
|
||||
fill='currentColor'
|
||||
>
|
||||
<path d='M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z' />
|
||||
</svg>
|
||||
</button>
|
||||
<iframe
|
||||
width='560'
|
||||
|
Loading…
x
Reference in New Issue
Block a user