You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default Mastodon web client update 4.2.x brought this strange issue where MPIV's viewer box is being rendered way below viewport.
Steps to reproduce the bug
Open a Mastodon instance web client, for example this random post
Hover over a photo
No MPIV viewer is visible but th e vertical scrollbar jumps, proving that the MPIV is functioning. If you keep zooming in, just the upper third of the viewer will appear on the bottom of the screen, while the remaining two thirds will still be hidden somewhere below the viewport.
Expected behavior
MPIV opens its viewer in the middle of the viewport
Environment
Browser: Firefox 121.0.1 + Tampermonkey 5.0.1
MPIV Version: 1.2.34
I'd really appreciate any advice on how to debug this. Thank you
The text was updated successfully, but these errors were encountered:
Thanks for the quick response!
This is strange about the CSP as my custom Stylus rules are being applied and MPIV is being injected into the page DOM.
I'd expect those not to work at all if CSP was the culprit.
Am I missing something?
The CSP error for mpiv's style attribute is shown in devtools console. Stylus doesn't use inline style attribute. As a workaround you can try adding a different @sandbox mode.
I can confirm: adding // @sandbox JavaScript to the script code does solve the issue.
Suitable as a workaround, but would love to see if it can be solved without monkey-patching.
Thank you once again!
The default Mastodon web client update 4.2.x brought this strange issue where MPIV's viewer box is being rendered way below viewport.
Steps to reproduce the bug
Expected behavior
MPIV opens its viewer in the middle of the viewport
Environment
I'd really appreciate any advice on how to debug this. Thank you
The text was updated successfully, but these errors were encountered: