From 664fb2d9ed528763a1e62cbd7e70fc37e749c6b9 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Tue, 8 Sep 2026 23:16:23 +0800 Subject: [PATCH] =?UTF-8?q?style(ui):=20PreferenceCard=20=E8=A1=A5?= =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E5=A4=96=E8=BE=B9=E8=B7=9D=2012dp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/top/yeij/cyrene/ui/common/PreferenceCard.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/kotlin/top/yeij/cyrene/ui/common/PreferenceCard.kt b/app/src/main/kotlin/top/yeij/cyrene/ui/common/PreferenceCard.kt index 5b18b3b..39e14ad 100644 --- a/app/src/main/kotlin/top/yeij/cyrene/ui/common/PreferenceCard.kt +++ b/app/src/main/kotlin/top/yeij/cyrene/ui/common/PreferenceCard.kt @@ -25,9 +25,13 @@ fun PreferenceCard( Box( modifier = modifier .fillMaxWidth() + .padding(horizontal = CardHorizontalMargin) .clip(RoundedCornerShape(16.dp)) .background(MiuixTheme.colorScheme.surfaceContainer), ) { content() } } + +/** 卡片与屏幕左右两侧的间距(Miuix 的 Preference 组件也是这个量级)。 */ +private val CardHorizontalMargin = 12.dp