Only add background to anchor row during collapse

This commit is contained in:
meyou 2026-05-16 11:18:09 +08:00
parent 9a0c8771a1
commit 7c6c32486d
No known key found for this signature in database

View File

@ -126,7 +126,10 @@ fun CalendarMonthPage(
if (rowHeightPx > 0) Modifier.height(with(density) { h.toDp() })
else Modifier
)
.background(MaterialTheme.colorScheme.surface)
.then(
if (isAnchor) Modifier.background(MaterialTheme.colorScheme.surface)
else Modifier
)
.offset(y = yOffsetDp)
.then(
if (weekIndex == 0 && rowHeightPx == 0) {