Opened 12 months ago
Closed 6 months ago
#63310 closed enhancement (fixed)
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: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | 3.7.4 |
| Component: | Administration | Keywords: | has-patch commit |
| 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 (11)
Change History (30)
#3
@
12 months 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%.
#4
@
12 months 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
@
11 months 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
After
#6
@
11 months 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
#9
follow-up:
↓ 10
@
10 months ago
63510.patch is another option to consider (props @dhruvang21). The .search-box paragraphs use flex display with a column-gap, which could make the float and margin unnecessary on the .search-box input[name="s"] search fields (at any screen size).
#10
in reply to:
↑ 9
@
10 months ago
- Keywords needs-design-feedback removed
- Version set to 3.7.4
Test Report
Description
✅ This report validates whether the indicated patch works as expected.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/63310/63510.patch
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- ✅ Issue resolved with patch.
Additional Notes
- Props to @dhruvang21
Replying to sabernhardt:
63510.patch is another option to consider (props @dhruvang21). The
.search-boxparagraphs useflexdisplay with acolumn-gap, which could make thefloatandmarginunnecessary on the.search-box input[name="s"]search fields (at any screen size).
- Definitely this is the best solution, great spotting, almost random add [29218] with 0 back testing.
This ticket was mentioned in Slack in #core by sirlouen. View the logs.
10 months ago
#13
@
7 months ago
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/63310/63510.patch
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 139.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.3
- MU Plugins: None activated
- Plugins:
- Gutenberg 21.5.0
- Test Reports 1.2.0
Actual Results
- ✅ Issue resolved with patch.
Additional Notes
Supplemental Artifacts
#14
@
7 months ago
Test Report
This Report Validates that the indicated patch addresses the issue ✅.
Patch Tested: https://core.trac.wordpress.org/attachment/ticket/63310/63510.patch
Environment:
OS: Windows
Web Server: nginx
PHP: 8.2.27
WordPress: 6.8.2
Browser: Chrome
Theme: Twenty Twenty-Five
Active Plugins: None
Actual Results
- Issue Resolved with patch.✅
Supplemental Artifacts
- Attachment Added
This ticket was mentioned in PR #10330 on WordPress/wordpress-develop by @joedolson.
6 months ago
#16
The existing patch fixes a small right margin adjust for posts, pages, and comments. There is a larger margin gap on plugins and themes, and this also covers those.
Trac ticket: https://core.trac.wordpress.org/ticket/63310


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.