Skip to content

Commit

Permalink
fix #740
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Apr 18, 2022
1 parent 392e706 commit a845788
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion layout/_partial/scripts/content-visibility-scroll-fix.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
}
resizeResilientDeferredRendering(".post-story");
resizeResilientDeferredRendering("article");
resizeResilientDeferredRendering(".post-wrapper");
};
contentVisibilityScrollFix();
volantis.pjax.push(contentVisibilityScrollFix);
Expand Down
5 changes: 4 additions & 1 deletion layout/_partial/scripts/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@

<%- partial('toc') %>

<%- partial('content-visibility-scroll-fix') %>
// https://github.com/volantis-x/hexo-theme-volantis/issues/693#issuecomment-987667610
<% if (!theme.plugins.scrollreveal.enable) { %>
<%- partial('content-visibility-scroll-fix') %>
<% } %>

<% if (theme.structured_data && theme.structured_data.enable) { %>
<%- structured_data() %>
Expand Down
2 changes: 1 addition & 1 deletion source/css/first.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
// https://github.com/volantis-x/hexo-theme-volantis/issues/693#issuecomment-987667610
if !hexo-config('plugins.scrollreveal.enable')
.post-story + .post-story, article + article , .post-wrapper + .post-wrapper{
.post-story + .post-story, article + article{
content-visibility: auto;
contain-intrinsic-size: 10px 500px;
}
Expand Down

0 comments on commit a845788

Please sign in to comment.