Fixes the background color behind the show more button on light mode

This commit is contained in:
Vitor Pamplona
2025-08-07 09:50:20 -04:00
parent f35376a7da
commit 10832e10c8

View File

@@ -399,17 +399,17 @@ fun calculateBackgroundColor(
newItemColor.compositeOver(defaultBackgroundColor) newItemColor.compositeOver(defaultBackgroundColor)
} }
} else { } else {
parentBackgroundColor?.value ?: Color.Transparent parentBackgroundColor?.value ?: defaultBackgroundColor.copy(alpha = 0f)
} }
} else { } else {
parentBackgroundColor?.value ?: Color.Transparent parentBackgroundColor?.value ?: defaultBackgroundColor.copy(alpha = 0f)
}, },
) )
} }
LaunchedEffect(createdAt) { LaunchedEffect(createdAt) {
delay(5000) delay(5000)
bgColor.value = parentBackgroundColor?.value ?: Color.Transparent bgColor.value = parentBackgroundColor?.value ?: defaultBackgroundColor.copy(alpha = 0f)
} }
return bgColor return bgColor