Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

ensu android: center align coming-soon dialog text

Prateek Sunalf9f2ce662445
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt
index 6cb6a2bc20..3044c2f44c 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt
@@ -22,6 +22,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
+import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import io.ente.ensu.designsystem.EnsuColor
import io.ente.ensu.designsystem.EnsuCornerRadius
@@ -48,10 +49,21 @@ internal fun ComingSoonDialog(
)
},
title = {
- Text(text = title, style = EnsuTypography.h3Bold)
+ Text(
+ text = title,
+ style = EnsuTypography.h3Bold,
+ modifier = Modifier.fillMaxWidth(),
+ textAlign = TextAlign.Center
+ )
},
text = {
- Text(text = message, style = EnsuTypography.body, color = EnsuColor.textMuted())
+ Text(
+ text = message,
+ style = EnsuTypography.body,
+ color = EnsuColor.textMuted(),
+ modifier = Modifier.fillMaxWidth(),
+ textAlign = TextAlign.Center
+ )
},
confirmButton = {
TextButton(