From 97d43583aebac512dd9aaf84f850a3d4ca640e53 Mon Sep 17 00:00:00 2001 From: TongTongStudio Date: Thu, 3 Dec 2026 01:15:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(usage):=20=E8=AE=B0=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=95=99=E7=99=BD=E7=BB=A7=E6=89=BF=E5=85=A8?= =?UTF-8?q?=E5=B1=80=20gutter=EF=BC=8C=E4=B8=8A=E4=B8=8B=E9=97=B4=E8=B7=9D?= =?UTF-8?q?=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 页面容器不再用 padding:16rpx 0 覆盖全局左右留白(原先卡片贴边) - 吸顶分段栏只留纵向间距,左右由 .page 提供 - 日期组头与卡片内容对齐,去除重复上下间距 --- pages/usage-records/index.wxss | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pages/usage-records/index.wxss b/pages/usage-records/index.wxss index 020d161..ace25b4 100644 --- a/pages/usage-records/index.wxss +++ b/pages/usage-records/index.wxss @@ -1,9 +1,6 @@ +/* 沿用全局 .page 的左右 --gutter 留白与底部安全区,仅覆盖顶部留白 */ .page { - padding: 16rpx 0 32rpx; -} - -.trend-card { - padding-bottom: 16rpx; + padding-top: 12rpx; } .trend-title { @@ -46,12 +43,13 @@ color: var(--sub); } -/* 吸顶包裹层:趋势卡随内容上滑,分段栏到达顶部后固定 */ +/* 吸顶包裹层:趋势卡随内容上滑,分段栏到达顶部后固定。 + 左右留白由 .page 的 --gutter 提供,这里只补纵向间距,与卡片间距一致 */ .seg-wrap { position: sticky; top: 0; z-index: 10; - padding: 8rpx 16rpx 12rpx; + padding: 0 0 var(--gutter); background: var(--surface); } @@ -159,9 +157,9 @@ padding: 24rpx 0; } -/* 按天分组的日期组头 */ +/* 按天分组的日期组头:左右与卡片内容对齐(卡片内边距 --gutter),上下间距统一 */ .day-header { - padding: 16rpx 8rpx 8rpx; + padding: 0 0 12rpx; font-size: 24rpx; font-weight: 600; color: var(--sub);