MonthHeader 年月与周号垂直居中对齐

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-18 13:36:23 +08:00
parent 62924eff3e
commit 302e6556dd

View File

@ -46,7 +46,7 @@ fun MonthHeader(
modifier = modifier
.fillMaxWidth()
.padding(vertical = 14.dp, horizontal = 12.dp),
verticalAlignment = Alignment.Bottom
verticalAlignment = Alignment.CenterVertically
) {
AnimatedContent(
targetState = Pair(year, month),
@ -77,7 +77,7 @@ fun MonthHeader(
slideOutVertically(tween(250)) { -it } + fadeOut(tween(250))
}
},
modifier = Modifier.padding(bottom = 2.dp)
modifier = Modifier
) { week ->
Text(
text = "${week}",