Administration: Fix alignment of Recent Comments in the Activity widget.#11794
Administration: Fix alignment of Recent Comments in the Activity widget.#11794itzmekhokan wants to merge 1 commit intoWordPress:trunkfrom
Conversation
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 `<h3>` 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 <cursoragent@cursor.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
The
#latest-commentscontainer already has the.activity-blockclass which providesmargin: 0 -12px 6px -12pxandpadding: 8px 12px 4pxto extend the block edge-to-edge within#dashboard_activity .insidewhile keeping its inner content aligned with sibling activity blocks.The additional
margin: 0 -12pxon#latest-comments #the-comment-listmade 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<h3>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-blockpadding, restoring consistent left/right alignment for all elements inside the Activity widget.Fixes #65217.
Trac ticket: https://core.trac.wordpress.org/ticket/65217