Make WordPress Core

Opened 22 months ago

Closed 22 months ago

Last modified 16 months ago

#62607 closed defect (bug) (duplicate)

Horizontal Scrollbar Appears on Theme Info Page in Mobile Viewports

Reported by: yogeshbhutkar Owned by:
Priority: normal Milestone:
Component: Themes Version: 6.7.1
Severity: minor Keywords: has-patch has-test-info
Cc: Focuses: ui, accessibility

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:

  1. Navigate to the Themes section.
  2. Select any theme from the list and observe the horizontal scrollbar on mobile 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)

Screen Recording 2024-11-29 at 11.52.13 AM.mov (2.2 MB ) - added by yogeshbhutkar 22 months ago.
Screencast of the bug.
after-patch.png (118.9 KB ) - added by parthvataliya 22 months ago.

Change History (7)

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


22 months 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

### Screenshot of the changes:
https://github.com/user-attachments/assets/4db10c14-6f7c-4144-9a5a-08d4cd69db4a

#2 @parthvataliya
22 months 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

  1. ✅ Issue resolved with patch.

#3 @yogeshbhutkar
22 months ago

  • Resolutionduplicate
  • Status newclosed

Duplicate of #62411.

#4 @desrosj
20 months ago

  • Milestone Awaiting Review

#5 @wordpressdotorg
16 months ago

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