Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash when previewing images #16037

Open
Taiko2k opened this issue Apr 14, 2021 · 0 comments
Open

Flash when previewing images #16037

Taiko2k opened this issue Apr 14, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Taiko2k
Copy link

Taiko2k commented Apr 14, 2021

Issue description

When clicking to view the full size of an image in a toot, a bright checker box pattern is shown before the image fully loads.

This creates an issue where if mastodon is using a dark theme and the loaded image is of dark content, this can effectively create a flash effect. I'm not sure if there is design reasoning for this checker pattern being present, this but I find it to be an annoyance and I imagine could pose an issue for people with sensitivity to flashes of light.

Interestingly this issue still occurs even if the image is already cached locally.

Suggested alternate behaviour

Any of the following could effectively solve the issue:

  • Remove the checker pattern asset, leaving just the semi-transparent background of the preview overlay while the image loads.
  • Show the low-resolution thumbnail in place and instantly switch to the full-resolution version once loaded.

Specifications

Mastodon 3.3.0 and earlier. Reproducible on both Firefox and Chrome.


Edit:

I found I can work around this issue by applying the custom CSS to my instance:

.image-loader__preview-canvas {
    visibility: hidden;
}

So this solves the issue for me individually.

@Taiko2k Taiko2k added the bug Something isn't working label Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant