Skip to content

Commit

Permalink
resolve alignment issue when alignright used
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiDhandhukiya74 committed Dec 6, 2024
1 parent e19a6f0 commit 2c38d25
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/block-library/src/avatar/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
width: 100%;
}

.wp-block-avatar.aligncenter {
.wp-block-avatar.aligncenter,
.wp-block[data-align="center"] .wp-block-avatar__link > .wp-block-avatar,
.wp-block[data-align="center"] > .wp-block-avatar {
.components-resizable-box__container {
margin: 0 auto;
}
}

.wp-block-avatar.alignright {
.components-resizable-box__container {
float: right;
}
}

0 comments on commit 2c38d25

Please sign in to comment.