From 3fe53e81b9f7dd7fac3504e9ade70fb6f6af5950 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 29 Sep 2021 14:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=B6=20=E4=BF=AE=E5=A4=8D=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/DefaultLayout.js | 2 +- pages/_document.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/DefaultLayout.js b/layouts/DefaultLayout.js index 3ebcfe8b..2204e366 100644 --- a/layouts/DefaultLayout.js +++ b/layouts/DefaultLayout.js @@ -60,7 +60,7 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => { changeColumn(3) } else if (window.innerWidth > 900) { changeColumn(2) - } else if (window.innerWidth < 900) { + } else if (window.innerWidth <= 900) { changeColumn(1) } }, 500) diff --git a/pages/_document.js b/pages/_document.js index e5c7a27e..e317e768 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -14,7 +14,6 @@ class MyDocument extends Document { -