mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -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();
|
||||
|
||||
const $posts = this.$('article.boxed');
|
||||
const $posts = this.$('.onscreen-post');
|
||||
const viewportTop = windowTop - slack;
|
||||
const topView = findTopView($posts, viewportTop, 0, $posts.length-1);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ const icons = {
|
|||
};
|
||||
|
||||
export default createWidget('post-small-action', {
|
||||
tagName: 'div.small-action.clearfix',
|
||||
tagName: 'div.small-action.onscreen-post.clearfix',
|
||||
|
||||
html(attrs) {
|
||||
const contents = [];
|
||||
|
|
|
@ -295,7 +295,7 @@ createWidget('post-body', {
|
|||
});
|
||||
|
||||
createWidget('post-article', {
|
||||
tagName: 'article.boxed',
|
||||
tagName: 'article.boxed.onscreen-post',
|
||||
buildKey: attrs => `post-article-${attrs.id}`,
|
||||
|
||||
defaultState() {
|
||||
|
|
Loading…
Reference in a new issue