A platform for community discussion. Free, open, simple.
UX: Make sticky avatars behavior consistent (#27223)
David Taylorb6cc95a0e1fe
diff --git a/app/assets/javascripts/discourse/app/modifiers/sticky-avatars.js b/app/assets/javascripts/discourse/app/modifiers/sticky-avatars.jsindex 9d821dc267e..6c3ec4bdef2 100644--- a/app/assets/javascripts/discourse/app/modifiers/sticky-avatars.js+++ b/app/assets/javascripts/discourse/app/modifiers/sticky-avatars.js@@ -122,14 +122,7 @@ export default class StickyAvatars extends Modifier {return;}- const postContentHeight =- entry.target.querySelector(".contents")?.clientHeight;- if (- this.direction === "⬆️" ||- postContentHeight > window.innerHeight - offset- ) {- entry.target.classList.add(STICKY_CLASS);- }+ entry.target.classList.add(STICKY_CLASS);});},{