fix(ui): remove duplicate lunar year text in YearHeader

This commit is contained in:
xfy 2026-07-24 11:47:20 +08:00
parent fd7f79c3d3
commit c80ad488c6

View File

@ -446,25 +446,6 @@ fun YearHeader(
style = MaterialTheme.typography.bodySmall
)
}
AnimatedContent(
targetState = year,
transitionSpec = {
if (targetState > initialState) {
slideInVertically(tween(250)) { -it } togetherWith
slideOutVertically(tween(250)) { it }
} else {
slideInVertically(tween(250)) { it } togetherWith
slideOutVertically(tween(250)) { -it }
}
},
modifier = Modifier.padding(top = 4.dp)
) { y ->
Text(
text = lunarYearLabel(y),
color = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.6f),
style = MaterialTheme.typography.bodySmall
)
}
}
}