From ca5adb63c33130866b04a28bf705429398309636 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Thu, 25 Dec 2025 19:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index.css | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/css/index.css b/css/index.css index fd141b9..3bae8a2 100644 --- a/css/index.css +++ b/css/index.css @@ -221,6 +221,19 @@ #index .nav-header { height: 56px; padding: 0 16px; + display: flex !important; + align-items: center !important; + /* Force vertical centering */ + justify-content: space-between; + } + + /* Ensure Right Container handles children alignment */ + #index .nav-right { + display: flex; + align-items: center; + height: 100%; + /* Fill header height */ + margin: 0; } /* 隐藏桌面端导航菜单 */ @@ -233,9 +246,12 @@ display: none !important; } - /* Logo 缩小 */ + /* Logo 缩小 - 但比之前稍微大一点 */ #index .nav-icon img { - max-height: 32px; + max-height: 48px; + /* Increased from 32px to 48px */ + width: auto; + object-fit: contain; } /* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */ @@ -245,8 +261,16 @@ min-width: auto !important; border-radius: 0 !important; border-left: none !important; - height: 56px !important; + height: 100% !important; + /* Ensure it fills parent height */ + max-height: 56px; + /* Match header height */ margin-right: -16px !important; + display: flex; + align-items: center; + justify-content: center; + margin-top: 0 !important; + /* Remove any potential vertical margin */ } /* 移动端注册按钮图标隐藏 */ @@ -265,6 +289,9 @@ display: flex !important; background: transparent !important; border: none !important; + align-self: center; + /* Ensure it centers itself */ + margin-top: 0; } }