π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ensu android: align streaming Rive loader to bottom-left
Prateek Sunalda5e1109d2dc
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 e0074990a9..c4cfd46ac6 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@@ -676,6 +676,7 @@ private fun StreamingMessageBubble(text: String) {modifier = Modifier.fillMaxWidth(),horizontalAlignment = Alignment.Start) {+ val isOnlyLoader = text.isBlank()Column(modifier = Modifier.animateContentSize(@@ -684,15 +685,32 @@ private fun StreamingMessageBubble(text: String) {stiffness = Spring.StiffnessMediumLow))- .padding(horizontal = EnsuSpacing.sm.dp, vertical = EnsuSpacing.md.dp)+ .padding(+ start = if (isOnlyLoader) 0.dp else EnsuSpacing.sm.dp,+ end = if (isOnlyLoader) 0.dp else EnsuSpacing.sm.dp,+ top = if (isOnlyLoader) 0.dp else EnsuSpacing.md.dp,+ bottom = if (isOnlyLoader) 0.dp else EnsuSpacing.md.dp+ )) {- GeneratingAnimation(- modifier = Modifier- .width(92.dp)- .height(42.dp)- )-- if (text.isNotBlank()) {+ if (isOnlyLoader) {+ Box(+ modifier = Modifier+ .fillMaxWidth()+ .height(42.dp),+ contentAlignment = Alignment.BottomStart+ ) {+ GeneratingAnimation(+ modifier = Modifier+ .width(92.dp)+ .height(42.dp)+ )+ }+ } else {+ GeneratingAnimation(+ modifier = Modifier+ .width(92.dp)+ .height(42.dp)+ )Spacer(modifier = Modifier.height(EnsuSpacing.xs.dp))MarkdownView(markdown = text, enableSelection = false, trailingCursor = showCursor)}