From 6879e7a8b79ee09bc0d4518021b823b23ce979d4 Mon Sep 17 00:00:00 2001 From: joey-home Date: Thu, 3 Sep 2026 22:41:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E6=8C=89=E9=92=AE=E5=86=85?= =?UTF-8?q?=E8=BE=B9=E8=B7=9D=E8=B0=83=E6=95=B4=E4=B8=BA=2020px=EF=BC=8C?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=9C=86=E8=A7=92=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=2012px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设置卡片自定义 CSS 圆角同步 8→12px。 --- apps/web/src/App.css | 2 +- apps/web/src/App.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web/src/App.css b/apps/web/src/App.css index 9eb9d45..7657e4a 100644 --- a/apps/web/src/App.css +++ b/apps/web/src/App.css @@ -11,7 +11,7 @@ width: 100%; max-width: 560px; background: #fff; - border-radius: 8px; + border-radius: 12px; /* 四周柔和阴影,与内容区背景拉开层次 */ box-shadow: 0 0 24px 0 rgba(17, 24, 39, 0.12); } diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index c332bf6..e8e9a44 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -12,7 +12,8 @@ function App() { theme={{ token: { colorPrimary: '#8b5cf6', - borderRadius: 8, + // 全局圆角 12px,输入框/按钮/卡片等同步生效 + borderRadius: 12, // 全局正文字号 14px;输入类控件与按钮经 components 单独放大 fontSize: 14, controlHeight: 34, @@ -29,7 +30,7 @@ function App() { controlHeight: 40, controlHeightSM: 32, // 横向内边距加大(默认 15/7),按钮更修长 - paddingInline: 22, + paddingInline: 20, paddingInlineSM: 14, }, },