Skip to content

Commit 40a4021

Browse files
committed
fix: editor alignment
1 parent 5dfcfbd commit 40a4021

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/blocks/my-account-button/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function MyAccountButtonEdit( { attributes, setAttributes } ) {
9696
</BlockControls>
9797
) }
9898
<div className={ classnames( 'wp-block-buttons', blockClassName ) }>
99-
<div className="wp-block-button" style={ { display: 'flex' } }>
99+
<div className="wp-block-button">
100100
<div { ...blockProps }>
101101
{ isIconVisible && (
102102
<span className="wp-block-newspack-my-account-button__icon" aria-hidden="true">

src/blocks/my-account-button/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
margin-right: calc( max(4px, 0.25em) * -1);
1717
}
1818
}
19+
20+
.wp-block-buttons > .wp-block-button:has(&) {
21+
display: flex;
22+
}
1923
}

0 commit comments

Comments
 (0)