WordPress / wporg-theme-directory

12 stars 6 forks source link

Theme preview: Style variations exceed container width, creating horizontal scrollbar #141

Closed Clorith closed 3 weeks ago

Clorith commented 3 weeks ago

Describe the bug The style variations in the theme previewer uses a grid display, but the two column layout causes a horizontal scroll bar.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://wordpress.org/themes/twentytwentyfour/preview/
  2. Observe the sidebar with style variations and patterns, and a horizontal scrollbar at the bottom.

Expected behavior The style variation buttons should either shrink in size to fit within the container, or collapse into a single column.

Screenshots Screenshot displaying the horizontal scrollbar in the left hand sidebar area with the Google Chrome browser

Desktop (please complete the following information):

Additional context Tested on relatively large resolution desktop monitors with 1920px and 2560px widths. This appears to happen due to the vertical scrollbar in the left hand sidebar being present, when switching to responsive mode in dev tools, where the scrollbar behaves like on a non-desktop device, or as is the default on Mac's, the horizontal scroll is not there.

ryelle commented 3 weeks ago

I noticed this while fixing #140, so it'll be fixed on production shortly :)