Skip to content

A platform for community discussion. Free, open, simple.

PERF: reduce height of the load more past message area (#20545)

Joffrey JAFFEUXe27c045f756f
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js b/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js
index 8b5aa5dc1ff..a6ff6a6ba4e 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js
@@ -473,7 +473,7 @@ export default class ChatLivePane extends Component {
const scrollPosition = Math.abs(event.target.scrollTop);
const total = event.target.scrollHeight - event.target.clientHeight;
const ratio = (scrollPosition / total) * 100;
- this.isTowardsTop = ratio < 99 && ratio >= 34;
+ this.isTowardsTop = ratio < 99 && ratio >= 80;
this.isTowardsBottom = ratio > 1 && ratio <= 4;
this.isAtBottom = ratio <= 1;
this.isAtTop = ratio >= 99;