diff --git a/app/assets/javascripts/discourse/app/modifiers/sticky-avatars.js b/app/assets/javascripts/discourse/app/modifiers/sticky-avatars.js index 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); }); }, {