mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:15:28 +08:00
FIX: Don't show "Go Back" at the bottom of the timeline
This commit is contained in:
parent
559fa36c18
commit
178f3b822e
|
@ -133,7 +133,7 @@ createWidget('timeline-scrollarea', {
|
|||
];
|
||||
|
||||
|
||||
if (position.lastRead) {
|
||||
if (position.lastRead && position.lastRead < attrs.topic.posts_count) {
|
||||
const lastReadTop = Math.round(position.lastReadPercentage * SCROLLAREA_HEIGHT);
|
||||
if (lastReadTop > (before + SCROLLER_HEIGHT)) {
|
||||
result.push(this.attach('timeline-last-read', { top: lastReadTop, lastRead: position.lastRead }));
|
||||
|
|
Loading…
Reference in New Issue
Block a user