Make WordPress Core

Opened 6 weeks ago

Last modified 2 days ago

#63277 accepted defect (bug)

Dashboard Activity Widget: Improve alignment of comment actions in mobile view

Reported by: sainathpoojary's profile sainathpoojary Owned by: audrasjb's profile audrasjb
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: ui, css Cc:

Description

In the Dashboard → Activity widget, on mobile or narrow screens, comment actions (e.g., Approve, Reply, Spam, Trash) are displayed with consistent padding around each item to ensure good tap targets.

However, since the first action also includes this left padding, the entire group appears slightly shifted from the left edge. This can make the alignment feel inconsistent or off-center compared to typical mobile UI spacing.

This isn’t a functional issue, but it could be improved by removing or reducing the left padding, so the group aligns more cleanly while still maintaining adequate spacing between individual actions.

Steps to reproduce:

  1. Navigate to Dashboard → Activity widget.
  2. Switch to mobile view or narrow the browser window.
  3. Tap a recent comment to reveal the actions.
  4. Notice that the first action is indented due to its padding, shifting it right

Screenshot

Current:

https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOp2yHY8OaQVMXblTwtAz0NaoWOrjEIdxin63g

Improved:

https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOkbBaC2JhQqGwV9t5a1L76cAb8yZUBDWKCgMe

Change History (7)

#1 @sainathpoojary
6 weeks ago

If this is something worth addressing, I’d be happy to work on a patch for it.

#2 @audrasjb
6 weeks ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.9
  • Owner set to audrasjb
  • Status changed from new to accepted
  • Version trunk deleted

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


6 weeks ago
#3

  • Keywords has-patch added; needs-patch removed

This PR fixes an alignment issue in the admin tables row actions where list items were shifting right due to inconsistent padding. The solution sets consistent padding across action items while maintaining proper spacing between them, resulting in better visual alignment throughout the interface.RetryClaude can make mistakes. Please double-check responses.

Before:

https://github.com/user-attachments/assets/a7c68afd-de63-48b7-976b-f33c5d20fed4

After:

https://github.com/user-attachments/assets/75a4da76-340b-4f64-ab2f-dc97c234b2cc

Trac ticket: #63277

#4 @valentingrenier
2 days ago

Just made a test on the Playground by narrowing the window size on the Dashboard. Padding is changing as expected.

We can mark this test as done and validated.

Last edited 2 days ago by valentingrenier (previous) (diff)

@cedche99 commented on PR #8691:


2 days ago
#5

There is a side effect when the screen width is below 782px. Here is a screenshot as an example:

https://github.com/user-attachments/assets/9dc9d35c-ef04-4b9e-96a1-89f28b2c287d

Potential clue to the cause:

@media screen and (max-width: 782px) {
    .row-actions {
        margin-left: -8px;
        margin-right: -8px;
        padding-top: 4px;
    }
}

#6 @quentinr64600
2 days ago

Test Report

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

Environment

  • Tested via Playground
  • Tested with Firefox 138.0.4

Actual Results

  • ✅ Issue resolved with patch ; padding works as expected

Additional Notes

  • Tested by changing the window width size

@cedche99 commented on PR #8691:


2 days ago
#7

There is a side effect when the screen width is below 782px. Here is a screenshot as an example:

https://private-user-images.githubusercontent.com/12508260/446491435-9dc9d35c-ef04-4b9e-96a1-89f28b2c287d.png

Potential clue to the cause:

@media screen and (max-width: 782px) {
    .row-actions {
        margin-left: -8px;
        margin-right: -8px;
        padding-top: 4px;
    }
}

UPDATE : It turns out it was a minification issue that didn’t take into account all the changes from the PR.

Note: See TracTickets for help on using tickets.