From 2c38d25beea6d4002340047e20465617bf7faaf3 Mon Sep 17 00:00:00 2001 From: NidhiDhandhukiya74 Date: Fri, 6 Dec 2024 16:06:51 +0530 Subject: [PATCH] resolve alignment issue when alignright used --- packages/block-library/src/avatar/editor.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/avatar/editor.scss b/packages/block-library/src/avatar/editor.scss index 845158b373f0a..4f216cf2e5e58 100644 --- a/packages/block-library/src/avatar/editor.scss +++ b/packages/block-library/src/avatar/editor.scss @@ -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; + } +}