mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55:49 +00:00
change color for editor btns
This commit is contained in:
parent
6f3a9ebd5a
commit
9b5ec96fe7
@ -146,11 +146,17 @@ const MenuBar = ({ setEditorRef, isChat }) => {
|
||||
>
|
||||
<CodeIcon />
|
||||
</IconButton>
|
||||
<IconButton sx={{
|
||||
padding: isMobile ? '5px' : 'revert'
|
||||
}} onClick={() => editor.chain().focus().unsetAllMarks().run()}>
|
||||
<FormatClearIcon />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => editor.chain().focus().unsetAllMarks().run()}
|
||||
sx={{
|
||||
color: editor.isActive('bold') || editor.isActive('italic') || editor.isActive('strike') || editor.isActive('code')
|
||||
? 'white'
|
||||
: 'gray',
|
||||
padding: isMobile ? '5px' : 'revert',
|
||||
}}
|
||||
>
|
||||
<FormatClearIcon />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => editor.chain().focus().toggleBulletList().run()}
|
||||
// color={editor.isActive('bulletList') ? 'white' : 'gray'}
|
||||
@ -191,9 +197,16 @@ const MenuBar = ({ setEditorRef, isChat }) => {
|
||||
>
|
||||
<FormatQuoteIcon />
|
||||
</IconButton>
|
||||
<IconButton onClick={() => editor.chain().focus().setHorizontalRule().run()}>
|
||||
<HorizontalRuleIcon />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => editor.chain().focus().setHorizontalRule().run()}
|
||||
disabled={!editor.can().chain().focus().setHorizontalRule().run()}
|
||||
sx={{
|
||||
color: 'gray',
|
||||
padding: isMobile ? '5px' : 'revert',
|
||||
}}
|
||||
>
|
||||
<HorizontalRuleIcon />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => editor.chain().focus().toggleHeading({ level: 1 }).run()}
|
||||
// color={editor.isActive('heading', { level: 1 }) ? 'white' : 'gray'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user