mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 05:40:43 +01:00
fix: selector for nav scroll
harmony doesn't have topic-header, they all have topic-main-buttons
This commit is contained in:
@@ -662,7 +662,7 @@ define('navigator', [
|
||||
|
||||
const postHeight = scrollTo.outerHeight(true);
|
||||
const navbarHeight = components.get('navbar').outerHeight(true) || 0;
|
||||
const topicHeaderHeight = $('.topic-header').outerHeight(true) || 0;
|
||||
const topicHeaderHeight = $('.topic-main-buttons').outerHeight(true) || 0;
|
||||
const viewportHeight = $(window).height();
|
||||
|
||||
// Temporarily disable navigator update on scroll
|
||||
|
||||
Reference in New Issue
Block a user