π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ensu android: tune rive outro overflow and visibility exit
Prateek Sunal58946d94d7b1
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 a199f234a3..0433d48796 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@@ -1,8 +1,8 @@package io.ente.ensu.chatimport androidx.compose.animation.AnimatedVisibility-import androidx.compose.animation.ExitTransitionimport androidx.compose.animation.fadeIn+import androidx.compose.animation.fadeOutimport androidx.compose.animation.scaleInimport androidx.compose.animation.core.tweenimport androidx.compose.foundation.background@@ -153,7 +153,7 @@ internal fun MessageList(keepStreamingVisible = truelastStreamingParentForOutro = streamingParentId} else if (keepStreamingVisible) {- delay(650)+ delay(900)keepStreamingVisible = falselastStreamingParentForOutro = null}@@ -269,7 +269,7 @@ internal fun MessageList((!isGenerating && keepStreamingVisible && lastStreamingParentForOutro == message.id),enter = fadeIn(animationSpec = tween(durationMillis = 140)) +scaleIn(initialScale = 0.94f, animationSpec = tween(durationMillis = 180)),- exit = ExitTransition.None+ exit = fadeOut(animationSpec = tween(durationMillis = 140))) {Column {Spacer(modifier = Modifier.height(EnsuSpacing.sm.dp))@@ -289,7 +289,7 @@ internal fun MessageList((!isGenerating && keepStreamingVisible && lastStreamingParentForOutro == null),enter = fadeIn(animationSpec = tween(durationMillis = 140)) +scaleIn(initialScale = 0.94f, animationSpec = tween(durationMillis = 180)),- exit = ExitTransition.None+ exit = fadeOut(animationSpec = tween(durationMillis = 140))) {StreamingMessageBubble(text = streamingResponse,@@ -697,6 +697,7 @@ private fun StreamingMessageBubble(val riveBoxWidth = 115.dpval riveBoxHeight = 52.5.dp+ val riveOverflowScale = if (isGenerating) 1f else 1.08fColumn(modifier = Modifier.fillMaxWidth(),@@ -707,13 +708,23 @@ private fun StreamingMessageBubble(.width(riveBoxWidth).height(riveBoxHeight).graphicsLayer { clip = false },- contentAlignment = Alignment.TopStart+ contentAlignment = Alignment.CenterStart) {- ensuRiveAnimation(- modifier = Modifier.matchParentSize(),- outroTrigger = !isGenerating,- outroInputName = "outro"- )+ Box(+ modifier = Modifier+ .fillMaxSize()+ .wrapContentSize(align = Alignment.CenterStart, unbounded = true)+ .graphicsLayer { clip = false },+ contentAlignment = Alignment.CenterStart+ ) {+ ensuRiveAnimation(+ modifier = Modifier+ .width(riveBoxWidth * riveOverflowScale)+ .height(riveBoxHeight * riveOverflowScale),+ outroTrigger = !isGenerating,+ outroInputName = "outro"+ )+ }}if (renderedText.isNotBlank()) {