π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ensu android: keep rive size stable and animate streaming collapse
Prateek Sunala913bfd97440
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.ktindex 0433d48796..401f4bb39e 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt@@ -4,6 +4,7 @@ import androidx.compose.animation.AnimatedVisibilityimport androidx.compose.animation.fadeInimport androidx.compose.animation.fadeOutimport androidx.compose.animation.scaleIn+import androidx.compose.animation.shrinkVerticallyimport androidx.compose.animation.core.tweenimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.gestures.detectTapGestures@@ -269,7 +270,8 @@ internal fun MessageList((!isGenerating && keepStreamingVisible && lastStreamingParentForOutro == message.id),enter = fadeIn(animationSpec = tween(durationMillis = 140)) +scaleIn(initialScale = 0.94f, animationSpec = tween(durationMillis = 180)),- exit = fadeOut(animationSpec = tween(durationMillis = 140))+ exit = fadeOut(animationSpec = tween(durationMillis = 180)) ++ shrinkVertically(animationSpec = tween(durationMillis = 220))) {Column {Spacer(modifier = Modifier.height(EnsuSpacing.sm.dp))@@ -289,7 +291,8 @@ internal fun MessageList((!isGenerating && keepStreamingVisible && lastStreamingParentForOutro == null),enter = fadeIn(animationSpec = tween(durationMillis = 140)) +scaleIn(initialScale = 0.94f, animationSpec = tween(durationMillis = 180)),- exit = fadeOut(animationSpec = tween(durationMillis = 140))+ exit = fadeOut(animationSpec = tween(durationMillis = 180)) ++ shrinkVertically(animationSpec = tween(durationMillis = 220))) {StreamingMessageBubble(text = streamingResponse,@@ -697,7 +700,7 @@ private fun StreamingMessageBubble(val riveBoxWidth = 115.dpval riveBoxHeight = 52.5.dp- val riveOverflowScale = if (isGenerating) 1f else 1.08f+ val riveOverflowScale = 1.08fColumn(modifier = Modifier.fillMaxWidth(),