Make WordPress Core

Opened 4 weeks ago

Last modified 2 weeks ago

#65217 new defect (bug)

Admin Dashboard Activity section alignment issue.

Reported by: gaurangsondagar's profile gaurangsondagar Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords: has-test-info has-patch
Focuses: ui, administration Cc:

Description

I upgraded to WordPress RC3, and while testing the admin panel, I noticed a UI glitch in the Activity section of the Admin Dashboard.

The WordPress RC3 version was upgraded using the following CLI command:

wp core update --version=7.0-RC3

I tried debugging the UI issue and noticed that when I commented out the following CSS rule (margin: 0 -12px;), the layout appeared correctly.

File path: /wp-admin/css/dashboard.css(line no: 1085)

Before:

#latest-comments #the-comment-list {
    position: relative;
    margin: 0 -12px;
}

After:

#latest-comments #the-comment-list {
    position: relative;
}

}}}

Attachments (6)

Screenshot from 2026-05-11 11-53-05.png (119.5 KB) - added by gaurangsondagar 4 weeks ago.
Screenshot from 2026-05-11 11-53-23.png (150.1 KB) - added by gaurangsondagar 4 weeks ago.
Screenshot from 2026-05-11 11-53-28.png (97.6 KB) - added by gaurangsondagar 4 weeks ago.
Screenshot from 2026-05-11 11-52-49.png (162.7 KB) - added by gaurangsondagar 4 weeks ago.
Screenshot from 2026-05-12 15-49-48.png (145.3 KB) - added by gaurangsondagar 4 weeks ago.
65217.list-items-padding.png (85.2 KB) - added by SergeyBiryukov 2 weeks ago.

Download all attachments as: .zip

Change History (15)

#1 @gaurangsondagar
4 weeks ago

The environment I am using below:

  • PHP: 8.2.29
  • WordPress: 7.0-RC3-62340
  • Web server: Apache
  • Database: MySQL
  • Browser: Chrome
  • OS: Ubuntu 22.04.5 LTS
  • Theme: Twenty Twenty-Five

Active Plugins:

  • AI
  • AI Provider for Google
  • AI Provider for OpenAI

I have attached two screenshots showing the layout with the existing CSS applied, and another two screenshots after removing the CSS mentioned below, where the Activity section left and right side alignment looks fine.

#latest-comments #the-comment-list {
    position: relative;
}
Last edited 4 weeks ago by gaurangsondagar (previous) (diff)

#2 @abcd95
4 weeks ago

  • Keywords has-test-info added

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 7.0-RC3
  • PHP: 8.3.30
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
  • Browser: Chrome 147.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • AI 0.9.0
    • AI Provider for Google 1.0.3
    • AI Provider for OpenAI 1.0.2
    • Test Reports 1.2.1

Actual Results

❌ Error condition does not occur.

Is there anything else I need to replicate?

Additional Notes

With the same plugins installed, I did not observe the error.

Supplemental Artifacts

https://i.ibb.co/MxPCG4Sb/Screenshot-2026-05-11-at-14-29-51.png

#3 @gaurangsondagar
4 weeks ago

Hi @abcd95

Thanks for trying to reproduce the issue and sharing your concern.

I have already shared the environment details where I am experiencing the issue. I have also prepared a short video that may help you reproduce the problem.

https://www.awesomescreenshot.com/video/52413172?key=56373bc3c08a0b339e68f2e91a9258c6

Last edited 4 weeks ago by gaurangsondagar (previous) (diff)

This ticket was mentioned in PR #11794 on WordPress/wordpress-develop by @khokansardar.


4 weeks ago
#4

  • Keywords has-patch added

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.

#5 @gaurangsondagar
4 weeks ago

  • Version set to trunk

Hi @khokansardar

Thank you for sharing the patch details. I tested it, and it works perfectly on my end.

Patch testing report:

Patch tested: https://github.com/WordPress/wordpress-develop/pull/11794

Environment:

  • PHP: 8.2.29
  • WordPress: 7.0-RC3-62340
  • Web server: Apache
  • Database: MySQL
  • Browser: Chrome
  • OS: Ubuntu 22.04.5 LTS
  • Theme: Twenty Twenty-Five

Steps Followed:

  • Before applying the patch, I was experiencing an alignment issue in the Admin Dashboard Activity section.
  • After applying the patch, the alignment issue was resolved.

Result:

  • The applied patch works as expected and successfully fixes the alignment issue in the Admin Dashboard Activity section.

I have attached a screenshot for reference.

#6 @audrasjb
3 weeks ago

Removing trunk version as this is not going to be shipped with WP 7.0 but in the next releases.

#7 @audrasjb
3 weeks ago

  • Milestone changed from Awaiting Review to 7.0.1

#8 @audrasjb
3 weeks ago

  • Version trunk deleted

#9 @SergeyBiryukov
2 weeks ago

  • Milestone changed from 7.0.1 to Awaiting Review

Hi there, thanks for the ticket!

It appears that the issue only happens if there are PHP notices or warnings displayed between the list items (outside of the <li> tags), and does not happen under normal circumstances.

It also looks like removing the -12px margin may not be the correct solution here, as that prevents the Recent Comments list items from extending to the full width as the Recently Published list items do, see 65217.list-items-padding.png. So while this should ideally be fixed, I don't see an easy solution at the moment.

In my testing, the same issue happens in WP 6.9, which makes it not a regression in 7.0. Moving back to Awaiting Review for now.

Last edited 2 weeks ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.