Make WordPress Core

Opened 4 weeks ago

Last modified 7 days ago

#63310 new enhancement

On mobile devices, the search bar in the WordPress admin "Pages" section has an unnecessary right margin, which negatively impacts the visual alignment and user experience.

Reported by: ronak44's profile ronak44 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch needs-design-feedback has-test-info
Focuses: ui, css Cc:

Description

On mobile devices, the search bar in the WordPress admin "Pages" section has an unnecessary right margin, which negatively impacts the visual alignment and user experience.

Attachments (4)

Screenshot_1.png (111.1 KB) - added by ronak44 4 weeks ago.
Screenshot_2.png (108.4 KB) - added by ronak44 4 weeks ago.
63310.diff (373 bytes) - added by sourav08 3 weeks ago.
63310.2.patch (357 bytes) - added by dilipbheda 3 weeks ago.
Updated patch

Download all attachments as: .zip

Change History (11)

@ronak44
4 weeks ago

@ronak44
4 weeks ago

@sourav08
3 weeks ago

#1 @sourav08
3 weeks ago

Hi @ronak44,​

I've created a patch that removes the unnecessary right margin from the search bar in the "Pages" section on mobile devices. This adjustment enhances visual alignment and improves the user experience.

#2 @sourav08
3 weeks ago

  • Keywords has-patch added; needs-patch removed

#3 @sabernhardt
3 weeks ago

  • Component changed from General to Administration
  • Keywords changes-requested needs-design-feedback added; needs-design removed
  • Type changed from defect (bug) to enhancement
  • Version 6.8 deleted

63310.diff removes all margins from multiple inputs at any screen size, but at least .tagsdiv .newtag still needs the right margin.

I would just add margin-right: 0; in the p.search-box input[name="s"] ruleset for smaller screens, where it sets the input width at 100%.

@dilipbheda
3 weeks ago

Updated patch

#4 @dilipbheda
3 weeks ago

  • Keywords needs-testing added; changes-requested removed

@ronak44 Thank you for the ticket. I was able to replicate the issue on my end as well. I've uploaded the updated patch based on @sabernhardt's suggestion.

#5 @nikunj8866
13 days ago

  • Keywords has-testing-info added; needs-testing removed

Test Report

This report validates that the indicated patch addresses the issue ✅.

Patch tested: https://core.trac.wordpress.org/attachment/ticket/63310/63310.2.patch

Environment

  • OS: Windows 11
  • Web Server: nginx/1.26.1
  • PHP: 8.2.27
  • WordPress: 6.8.1
  • Browser: Chrome v136.0.
  • Theme: Twenty Twenty-Five (twentytwentyfive)
  • Active Plugins:

Actual Results

  • ✅ Issue resolved with patch.

Supplemental Artifacts

Before

https://prnt.sc/s7tswPNsvFSk

After

https://prnt.sc/2ij4pHjVlaFG

#6 @darshitrajyaguru97
12 days ago

Test Report

Patch tested: https://core.trac.wordpress.org/attachment/ticket/63310/63310.2.patch

Environment:

OS: Windows 10
PHP: 8.2.12
WordPress: 6.8.1
Browser: Chrome
Theme: Twenty Thirteen
Plugins: None activated

Actual Results:

Before patch:
Screenshot: https://prnt.sc/Lqc0IUk3HFCl

After patch:
Screenshot: https://prnt.sc/0XUaYek-cINm

✅ Patch working well as desired solution

#7 @wordpressdotorg
7 days ago

  • Keywords has-test-info added; has-testing-info removed
Note: See TracTickets for help on using tickets.