From 45ef022b787685a1501fc05f00b605b767f35cd1 Mon Sep 17 00:00:00 2001 From: ciaochaos <1272777550@qq.com> Date: Mon, 22 Jun 2020 19:54:40 +0800 Subject: [PATCH] [fix] Padding --- src/components/Qrcode.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Qrcode.css b/src/components/Qrcode.css index dbac00e..a68add0 100644 --- a/src/components/Qrcode.css +++ b/src/components/Qrcode.css @@ -100,8 +100,8 @@ @media (min-width: 1000px) { .Qr-box { - padding-left: calc((100vw - 1000px) / 2 + 23px); - padding-right: calc((100vw - 1000px) / 2 + 13px); + padding-left: calc((100vw - var(--scrollbar-width) - 1000px) / 2 + 23px); + padding-right: calc((100vw - var(--scrollbar-width) - 1000px) / 2 + 13px); } }