From 60352c9dfb03eec521f231fe0346fe3dd9f30501 Mon Sep 17 00:00:00 2001 From: yxh Date: Fri, 17 Feb 2023 14:26:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/theme/media/login.scss | 4 +--- src/views/login/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/theme/media/login.scss b/src/theme/media/login.scss index 41a0159..7b45bf5 100644 --- a/src/theme/media/login.scss +++ b/src/theme/media/login.scss @@ -24,9 +24,7 @@ ------------------------------- */ @media screen and (max-width: $md) { .login-content { - right: unset !important; - left: 50% !important; - transform: translate(-50%, -50%) translate3d(0, 0, 0) !important; + } } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 9361370..af800db 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -118,7 +118,10 @@ export default defineComponent({ .login-content-out { width: 100%; height: 100%; - padding-top: 150px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; } .login-content { width: 500px;