From 063b2a665109d8366ae79f917f93b03278f8e345 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 28 Sep 2021 16:29:13 +0800 Subject: [PATCH] Prevent Disqus from jumping when page loading --- _includes/disqus.html | 2 +- _sass/layout/post.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_includes/disqus.html b/_includes/disqus.html index 5879ac6..65af8b5 100644 --- a/_includes/disqus.html +++ b/_includes/disqus.html @@ -3,7 +3,7 @@ -->
-

+

Comments powered by Disqus.

diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss index 16900cb..b4475df 100644 --- a/_sass/layout/post.scss +++ b/_sass/layout/post.scss @@ -218,9 +218,12 @@ nav[data-toggle=toc] { #post-extend-wrapper { min-height: 2rem; + #disqus_thread { + min-height: 7.5rem; margin-bottom: 2rem; } + } .post-tail-bottom a {