Page MenuHomePhabricator

Horizontal overflow when zoomed in and on narrow screens
Closed, InvalidPublicBUG REPORT

Description

When using browser's zoom-in feature on a wikipedia page, for example Wikipedia, under the new design, a horizontal scroll bar will appear due to overflow.

This is less a problem if you stick with 100% zoom level on a 16:9 screen, but it can cause some issues on vertical monitors and when you zoom in, which is a feature people frequently use because the default font size of wikipedia is fairly small.

Steps to Reproduce:

  1. My setup is 1920x1080 screen Linux, and Firefox
  2. Open https://en.wikipedia.org/wiki/Wikipedia using the new layout
  3. Press Ctrl-+ until the zoom level is 200%.

Actual Results:

Notice the horizontal scroll bar at the very bottom. The top navigation bar also does not seem to fit even though there are spaces to the left.

full-200925-150835.png (1×1 px, 444 KB)

Expected Results:

No horizontal scroll bar, at least at 200% zoom level, similar to the original design.

full-200925-150749.png (1×1 px, 488 KB)

You can also notice the same problem using the responsive design mode in Firefox (press F12 and click the phone/tablet icon). The horizontal overflow occurs at 1005px, which is more than 200px higher than the original design (799px). Do not use Chrome's device toolbar to test this, as I noticed Chrome does not appear to display horizontal overflow properly.

Event Timeline

@kst This is unlikely to be fixed as the minimum width was added intentionally. Add the following CSS to your global.css to undo it:

.skin-vector-max-width .mw-page-container {
  min-width: auto;
}
Jdlrobson subscribed.

New Vector by design currently has a min-width
https://gerrit.wikimedia.org/g/mediawiki/skins/Vector/+/64d03c85ac0123775cb7b4b4975b59cfafc7d00b/resources/skins.vector.styles/layouts/screen.less#44

A double scroll bar will appear below this threshold, as we can't guarantee the design to still work at that resolution.

As the project continues we aim to eventually remove that (perhaps as part of T276566), but this is working exactly as intended for now.