mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
FIX: Include small actions when determining what's on screen
This commit is contained in:
parent
81a0b25324
commit
c76e6e173e
3 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ export default MountWidget.extend({
|
||||||
|
|
||||||
let windowTop = $w.scrollTop();
|
let windowTop = $w.scrollTop();
|
||||||
|
|
||||||
const $posts = this.$('article.boxed');
|
const $posts = this.$('.onscreen-post');
|
||||||
const viewportTop = windowTop - slack;
|
const viewportTop = windowTop - slack;
|
||||||
const topView = findTopView($posts, viewportTop, 0, $posts.length-1);
|
const topView = findTopView($posts, viewportTop, 0, $posts.length-1);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ const icons = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default createWidget('post-small-action', {
|
export default createWidget('post-small-action', {
|
||||||
tagName: 'div.small-action.clearfix',
|
tagName: 'div.small-action.onscreen-post.clearfix',
|
||||||
|
|
||||||
html(attrs) {
|
html(attrs) {
|
||||||
const contents = [];
|
const contents = [];
|
||||||
|
|
|
@ -295,7 +295,7 @@ createWidget('post-body', {
|
||||||
});
|
});
|
||||||
|
|
||||||
createWidget('post-article', {
|
createWidget('post-article', {
|
||||||
tagName: 'article.boxed',
|
tagName: 'article.boxed.onscreen-post',
|
||||||
buildKey: attrs => `post-article-${attrs.id}`,
|
buildKey: attrs => `post-article-${attrs.id}`,
|
||||||
|
|
||||||
defaultState() {
|
defaultState() {
|
||||||
|
|
Loading…
Reference in a new issue