style(ui): PreferenceCard 补左右外边距 12dp
This commit is contained in:
1 parent
cf291b58ab
commit
664fb2d9ed
1 file changed
+4
@@ -25,9 +25,13 @@ fun PreferenceCard(
|
|||||||
Box(
|
Box(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
.padding(horizontal = CardHorizontalMargin)
|
||||||
.clip(RoundedCornerShape(16.dp))
|
.clip(RoundedCornerShape(16.dp))
|
||||||
.background(MiuixTheme.colorScheme.surfaceContainer),
|
.background(MiuixTheme.colorScheme.surfaceContainer),
|
||||||
) {
|
) {
|
||||||
content()
|
content()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 卡片与屏幕左右两侧的间距(Miuix 的 Preference 组件也是这个量级)。 */
|
||||||
|
private val CardHorizontalMargin = 12.dp
|
||||||
Reference in new issue
Block a user