Skip to content

Commit

Permalink
adjust alignment toolbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
frrrances committed Jul 26, 2024
1 parent 893273c commit c7ec208
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions block-editor/src/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,28 +155,30 @@ export function Edit(props) {
? (
<Fragment>
<BlockControls>
<DropdownMenu
controls={[
{
icon: justifyLeft,
onClick: () => setJustification('left'),
title: __('Justify Icon Left', 'font-awesome')
},
{
icon: justifyCenter,
onClick: () => setJustification('center'),
title: __('Justify Icon Center', 'font-awesome')
},
{
icon: justifyRight,
onClick: () => setJustification('right'),
title: __('Justify Icon Right', 'font-awesome')
}
]}
icon={justificationDropdownMenuIcon}
label={__('Change Icon Justification', 'font-awesome')}
/>

<ToolbarGroup>
<DropdownMenu
controls={[
{
icon: justifyLeft,
onClick: () => setJustification('left'),
title: __('Justify Icon Left', 'font-awesome')
},
{
icon: justifyCenter,
onClick: () => setJustification('center'),
title: __('Justify Icon Center', 'font-awesome')
},
{
icon: justifyRight,
onClick: () => setJustification('right'),
title: __('Justify Icon Right', 'font-awesome')
}
]}
icon={justificationDropdownMenuIcon}
label={__('Change Icon Justification', 'font-awesome')}
/>
</ToolbarGroup>
<ToolbarGroup>
<ToolbarButton
showTooltip
onClick={() => setIsEditModalOpen(!isEditModalOpen)}
Expand All @@ -185,6 +187,7 @@ export function Edit(props) {
label={__("Add Icon Styling")}
icon={modifyToolbarIcon}
/>
</ToolbarGroup>

{isEditModalOpen && (
<Modal
Expand Down

0 comments on commit c7ec208

Please sign in to comment.