From 72b3168e701d28d909d12cac3e44360af298bfdf Mon Sep 17 00:00:00 2001 From: karthick-murugan Date: Wed, 27 Nov 2024 12:50:52 +0530 Subject: [PATCH] Feedback changes updated --- packages/block-library/src/latest-comments/editor.scss | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/latest-comments/editor.scss b/packages/block-library/src/latest-comments/editor.scss index 1435f248350b54..2de0a5e9fa0b8d 100644 --- a/packages/block-library/src/latest-comments/editor.scss +++ b/packages/block-library/src/latest-comments/editor.scss @@ -1,11 +1,17 @@ // Higher specificity - target list via wrapper. .wp-block-latest-comments .wp-block-latest-comments { - // Remove left spacing. Higher specificity required to + // Remove spacing. Higher specificity required to // override default wp-block layout styles in the Post/Site editor. - padding-left: 0; + padding: 0; // These styles prevent duplicate borders in the Latest Comments block caused by // server-side rendering injecting additional styles in the editor. They ensure // consistent appearance in the editor while avoiding conflicts with frontend styles. border: none; border-radius: inherit; } + +// Reset margin for inner elements of the server-side rendered block +// to avoid extra spacing introduced in the editor +ol.wp-block-latest-comments { + margin: 0; +}