Sometimes I get page preview pop-ups with two pokeys. These screenshots are from the Main Page on English Wikipedia in safe mode (https://en.wikipedia.org/wiki/Main_Page?safemode=1).
{F25999013}
{F25999023}
= Developer notes
Captured and immortalised in this jsfiddle:
https://jsfiddle.net/raw3y1jf/3/
The question is - why?
The problem is that the image thumbnail width is less than the expected 200px
https://github.com/wikimedia/mediawiki-extensions-Popups/blob/master/src/ui/thumbnail.js#L167
and the pokey's CSS left position is hardcoded.
Hopefully it's possible to fix this by using "right" instead of "left"
As part of this, it might be worthwhile generating popups in all the different possible layouts - this would be useful for verifying our changes to the popups in future.