Summary
When Page Previews are invoked on smaller screens and/or screens where the zoom level is above a certain level the content of the Page Preview scrolls off the screen.
Description
First reported on English Wikipedia: https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(policy)&diff=824340909&oldid=824336967
Perhaps one approach would be to detect viewport size and disable Page Previews - or images. Tricky as there will be many edge cases, but something to consider.
Replication steps
- Resize browser height to 500
- Visit https://en.wikipedia.org/wiki/Main_Page?useskin=vector and hover over encyclopedia
- Expected: hover card can be viewed
Developer notes
Arguably, we might want to disable page previews if the height of the window is too small. Font size is actually not such an issue. This would be the easiest fix.
A more complicated version would calculate the height of the preview and refuse to render it if the top of the page preview overlaps with the top scroll offset of the window.