#62607 closed defect (bug) (duplicate)
Horizontal Scrollbar Appears on Theme Info Page in Mobile Viewports
Reported by: | yogeshbhutkar | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 6.7.1 |
Component: | Themes | Keywords: | has-patch has-testing-info |
Focuses: | ui, accessibility | Cc: |
Description
Issue Description:
A horizontal scrollbar
appears on the Theme Installation
page when viewed on mobile viewports. This causes the content to shift left when scrolled horizontally, despite the content being correctly contained within the viewport
. The horizontal scroll
functionality is unnecessary and disrupts the user experience.
Root Cause:
The issue arises from a right margin
applied to theme screenshots
to ensure proper grid alignment on desktop views. However, this margin is not adjusted for mobile viewports, resulting in the unintended horizontal scrollbar
.
Steps to Reproduce:
- Navigate to the Themes section.
- Select any theme from the list and observe the
horizontal scrollbar
onmobile viewports
.
Proposed Solution:
Remove the right margin
for smaller viewports
. Adjusting the CSS
to handle margins based on the viewport size dynamically will resolve the issue and eliminate the horizontal scrollbar
.
Attachments (2)
Change History (6)
This ticket was mentioned in PR #7918 on WordPress/wordpress-develop by @yogeshbhutkar.
7 weeks ago
#1
- Keywords has-patch added
### Description:
This PR fixes an unexpected horizontal scroll detected on mobile viewports under the Theme Info page.
Trac ticket: https://core.trac.wordpress.org/ticket/62607
#2
@
7 weeks ago
- Keywords has-testing-info added
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/7918.patch
Environment
- WordPress: 6.8-alpha-59274-src
- PHP: 8.2.26
- Server: nginx/1.27.3
- Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.26)
- Browser: Chrome 131.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.0
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- ✅ Issue resolved with patch.
Screencast of the bug.