better switch of opacity bg

This commit is contained in:
Diogo
2024-08-30 23:11:33 +01:00
parent 421e2b34f6
commit 4f4713e5af

View File

@@ -386,7 +386,7 @@ fun UserPicker(
}
Box(
modifier = if (appPlatform.isAndroid) Modifier.background(color = Color.Gray.copy(alpha = 0.6f)) else Modifier) {
modifier = if (appPlatform.isAndroid && newChat.isVisible()) Modifier.background(color = Color.Gray.copy(alpha = 0.6f)) else Modifier) {
AnimatedVisibility(
visible = newChat.isVisible(),
enter = if (appPlatform.isAndroid) slideInVertically(