From a062a7e2c0be53b7780b5744858711d1ad536eac Mon Sep 17 00:00:00 2001 From: yangxiangyuan Date: Mon, 20 Jul 2026 15:51:44 +0800 Subject: [PATCH] =?UTF-8?q?style(public/index.css):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E6=8C=89=E9=92=AE=E5=92=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一背景按钮和本地背景切换开关的尺寸、内边距与布局,优化视觉和交互样式细节 --- public/index.css | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/public/index.css b/public/index.css index 282dc99..f2ec2ba 100644 --- a/public/index.css +++ b/public/index.css @@ -305,21 +305,31 @@ body { z-index: 1000; } +.bg-btn-wrapper .bg-local-switch { + flex-direction: row; + height: 28px; + gap: 0; +} + +.bg-btn-wrapper .bg-local-switch input { + top: 0; +} + /* 换背景按钮(仅图标) */ .change-background-btn { background: transparent; border: none; border-radius: 50%; - width: auto; - height: auto; - padding: 2px; + width: 28px; + height: 28px; + padding: 0; color: var(--text-light); - font-size: 1.6rem; + font-size: 1.2rem; line-height: 1; cursor: pointer; transition: all 0.2s ease; backdrop-filter: none; - display: inline-flex; + display: flex; align-items: center; justify-content: center; } @@ -328,7 +338,6 @@ body { background: rgba(255, 255, 255, 0.2); outline: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); - padding: 2px; } .change-background-btn::after {