mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Skip animated gif treatment for onebox avatar (#24199)
This fixes an edge case where the layout of a onebox with a gif avatar was broken. Oneboxes have specific styling attached to avatar images and the pausable animated image treatment was breaking that styling.
This commit is contained in:
parent
88bb5fa773
commit
77445a4b32
@ -58,7 +58,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
let images = post.querySelectorAll("img.animated");
|
||||
let images = post.querySelectorAll("img.animated:not(.onebox-avatar)");
|
||||
|
||||
images.forEach((img) => {
|
||||
// skip for edge case of multiple animated images in same block
|
||||
|
Loading…
Reference in New Issue
Block a user