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

Fix blinking thumbnail row #194

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

zatteo
Copy link

@zatteo zatteo commented Apr 25, 2024

When a thumbnail URL is invalid, it triggers the onThumbnailError handler and we display a default thumbnail in CSS. If the HTML view is reloaded (which happens a lot), it triggers again and again the onThumbnailError and the default thumbnail in CSS handler leading to a blinking thumbnail.

Now we change directly the thumbnail URL with the default one. So no onThumbnailError handler triggered. When the sync will be done, a new cipher row will a new thumbnail URL.

When a thumbnail URL is invalid, it triggers the onThumbnailError
handler and we display a default thumbnail in CSS. If the HTML view
is reloaded (which happens a lot), it triggers again and again the
onThumbnailError and the default thumbnail in CSS handler leading to
a blinking thumbnail.

Now we change directly the thumbnail URL with the default one. So no
onThumbnailError handler triggered. When the sync will be done, a new
cipher row will a new thumbnail URL.
@zatteo zatteo merged commit db0b9ad into feat/stream1 Apr 25, 2024
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the fix/blinking-thumbnail-row branch April 25, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants