fix: code style (#208)

* fix: code style

* fix: add copy icon
This commit is contained in:
DiamondThree
2022-08-12 15:24:16 +08:00
committed by GitHub
parent 9be0735207
commit 551ddf5f94
4 changed files with 23 additions and 8 deletions
@@ -799,11 +799,11 @@ const EditorLeaf = ({ attributes, children, leaf }: any) => {
<span {...attributes}>
<code
style={{
backgroundColor: 'rgba(135,131,120,0.15)',
borderRadius: '3px',
color: '#EB5757',
fontSize: '0.875em',
padding: '0.25em 0.375em',
backgroundColor: '#F2F5F9',
borderRadius: '5px',
color: '#3A4C5C',
padding: '3px 8px',
margin: '0 2px',
}}
>
{customChildren}