From 501fcd93c0b62d887bc9215eb622f65c20484e79 Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Mon, 11 May 2026 16:12:43 +0530 Subject: [PATCH] Administration: Fix alignment of Recent Comments in the Activity widget. The `#latest-comments` container already has the `.activity-block` class which provides `margin: 0 -12px 6px -12px` and `padding: 8px 12px 4px` to extend the block edge-to-edge within `#dashboard_activity .inside` while keeping its inner content aligned with sibling activity blocks. The additional `margin: 0 -12px` on `#latest-comments #the-comment-list` made the comment list and the comment-item backgrounds break out of the activity-block padding a second time, leaving the list horizontally misaligned with the sibling `

` heading, the views (subsubsub) navigation, and the reply form output below it. Removing the redundant negative margin lets the comment list respect the parent `.activity-block` padding, restoring consistent left/right alignment for all elements inside the Activity widget. Fixes #65217. Co-authored-by: Cursor --- src/wp-admin/css/dashboard.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index ab73f828f7067..e8c9f705c8879 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -1084,7 +1084,7 @@ body #dashboard-widgets .postbox form .submit { #latest-comments #the-comment-list { position: relative; - margin: 0 -12px; + margin: 0; } #activity-widget #the-comment-list .comment,