Only show anchor row background during collapse, not on initial render

This commit is contained in:
meyou 2026-05-16 11:24:34 +08:00
parent 7c6c32486d
commit 9544cb7526
No known key found for this signature in database

View File

@ -127,7 +127,7 @@ fun CalendarMonthPage(
else Modifier
)
.then(
if (isAnchor) Modifier.background(MaterialTheme.colorScheme.surface)
if (isAnchor && collapseProgress > 0f) Modifier.background(MaterialTheme.colorScheme.surface)
else Modifier
)
.offset(y = yOffsetDp)