From 6095e9c9bddea55defe12f4265bf9d9fcc0c541d Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Fri, 18 Jul 2025 15:50:50 +0800 Subject: [PATCH] perf: Modify the layout to flex --- .../templates/authentication/login.html | 75 ++++++++-------- apps/templates/_base_only_content.html | 46 ++++++---- apps/templates/_foot_js.html | 11 +-- apps/templates/_without_nav_base.html | 86 ++++++++++++------- apps/templates/base.html | 42 ++++----- 5 files changed, 148 insertions(+), 112 deletions(-) diff --git a/apps/authentication/templates/authentication/login.html b/apps/authentication/templates/authentication/login.html index aea72a6ee..c09efb911 100644 --- a/apps/authentication/templates/authentication/login.html +++ b/apps/authentication/templates/authentication/login.html @@ -69,23 +69,27 @@ } .login-content { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); height: 500px; width: 1000px; + margin-top: auto; + margin-bottom: auto; } body { - position: relative; + box-sizing: border-box; + min-height: 100%; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; width: 100vw; height: 100vh; background-color: #f3f3f3; - {#height: calc(100vh - (100vh - 470px) / 3);#} + {#height: calc(100vh - (100vh - 470px) / 3);#} } + .captcha { float: right; } @@ -138,7 +142,7 @@ } .jms-title { - {#padding: 22px 10px 10px;#} + {#padding: 22px 10px 10px;#} } .more-login-items { @@ -318,7 +322,7 @@