chore: re-order super toolbar items
This commit is contained in:
@@ -649,6 +649,17 @@ const ToolbarPlugin = () => {
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
<ToolbarButton
|
||||||
|
name="Formatting options"
|
||||||
|
onSelect={() => {
|
||||||
|
setIsTextStyleMenuOpen(!isTextStyleMenuOpen)
|
||||||
|
}}
|
||||||
|
ref={textStyleAnchorRef}
|
||||||
|
className={isTextStyleMenuOpen ? 'md:bg-default' : ''}
|
||||||
|
>
|
||||||
|
<Icon type={blockTypeToIconName[blockType]} size="custom" className="h-4 w-4 md:h-3.5 md:w-3.5" />
|
||||||
|
<Icon type="chevron-down" size="custom" className="ml-2 h-4 w-4 md:h-3.5 md:w-3.5" />
|
||||||
|
</ToolbarButton>
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
name="Bold"
|
name="Bold"
|
||||||
iconName="bold"
|
iconName="bold"
|
||||||
@@ -682,7 +693,7 @@ const ToolbarPlugin = () => {
|
|||||||
onSelect={() => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'code')}
|
onSelect={() => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'code')}
|
||||||
/>
|
/>
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
name="Formatting options"
|
name="Text style"
|
||||||
onSelect={() => {
|
onSelect={() => {
|
||||||
setIsTextFormatMenuOpen(!isTextFormatMenuOpen)
|
setIsTextFormatMenuOpen(!isTextFormatMenuOpen)
|
||||||
}}
|
}}
|
||||||
@@ -692,17 +703,6 @@ const ToolbarPlugin = () => {
|
|||||||
<Icon type="text" size="custom" className="h-4 w-4 md:h-3.5 md:w-3.5" />
|
<Icon type="text" size="custom" className="h-4 w-4 md:h-3.5 md:w-3.5" />
|
||||||
<Icon type="chevron-down" size="custom" className="ml-1 h-4 w-4 md:h-3.5 md:w-3.5" />
|
<Icon type="chevron-down" size="custom" className="ml-1 h-4 w-4 md:h-3.5 md:w-3.5" />
|
||||||
</ToolbarButton>
|
</ToolbarButton>
|
||||||
<ToolbarButton
|
|
||||||
name="Text style"
|
|
||||||
onSelect={() => {
|
|
||||||
setIsTextStyleMenuOpen(!isTextStyleMenuOpen)
|
|
||||||
}}
|
|
||||||
ref={textStyleAnchorRef}
|
|
||||||
className={isTextStyleMenuOpen ? 'md:bg-default' : ''}
|
|
||||||
>
|
|
||||||
<Icon type={blockTypeToIconName[blockType]} size="custom" className="h-4 w-4 md:h-3.5 md:w-3.5" />
|
|
||||||
<Icon type="chevron-down" size="custom" className="ml-2 h-4 w-4 md:h-3.5 md:w-3.5" />
|
|
||||||
</ToolbarButton>
|
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
name="Alignment"
|
name="Alignment"
|
||||||
onSelect={() => {
|
onSelect={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user