While viewing https://en.wikipedia.org/wiki/Logos#Isocrates'_logos I got a link popup (partially) outside the browser view that is partially visible.
I will attach a screenshot.
{F27336052}
= Replication steps
- resize your window to around 678px
- ensure a link appears in the middle of the page
- hover over link
= Developer notes
We use a method [[ https://github.com/wikimedia/mediawiki-extensions-Popups/blob/master/src/ui/renderer.js#L360 | createLayout ]] to position page previews.
The X/Y flip logic can be changed to account for the size of the page preview but the pokey is fixed - it's either on the left of the link or the right... never the center.
Two possible solutions
## Allow a new variant of the page preview where the pokey is in the middle of the preview.
This is certainly doable but complicated.
Personally I think this problem is not worth the trouble, it is likely to only impact users who have resized their browser window and is easily solved by resizing it larger.
## Solution 2 (my proposed solution)
It might be sensible to disable page previews at a certain window threshold (< 700px / tablet) so that they do not show at all,