From f03165f70ac0055cc40b53d4e0a30ed0f7ddfa46 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Sat, 9 Apr 2022 18:58:16 +0200 Subject: [PATCH] Added max lines to welcome page text composables --- src/main/kotlin/app/ui/WelcomePage.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/app/ui/WelcomePage.kt b/src/main/kotlin/app/ui/WelcomePage.kt index f96789d..4d5aba4 100644 --- a/src/main/kotlin/app/ui/WelcomePage.kt +++ b/src/main/kotlin/app/ui/WelcomePage.kt @@ -76,6 +76,7 @@ fun WelcomePage( "Version ${AppConstants.APP_VERSION}", color = MaterialTheme.colors.primaryTextColor, fontSize = 12.sp, + maxLines = 1, modifier = Modifier .align(Alignment.BottomEnd) .padding(bottom = 16.dp, end = 16.dp) @@ -121,6 +122,7 @@ fun HomeButtons( Text( text = AppConstants.APP_NAME, fontSize = 32.sp, + maxLines = 1, color = MaterialTheme.colors.primaryTextColor, modifier = Modifier.padding(bottom = 16.dp), ) @@ -228,6 +230,7 @@ fun RecentRepositories(appStateManager: AppStateManager, tabViewModel: TabViewMo Text( text = repoDirName, fontSize = 14.sp, + maxLines = 1, color = MaterialTheme.colors.primary, ) } @@ -236,6 +239,7 @@ fun RecentRepositories(appStateManager: AppStateManager, tabViewModel: TabViewMo text = repoDirPath, fontSize = 14.sp, modifier = Modifier.padding(start = 4.dp), + maxLines = 1, color = MaterialTheme.colors.secondaryTextColor ) } @@ -271,6 +275,7 @@ fun ButtonTile( Text( text = title, + maxLines = 1, ) } } @@ -301,6 +306,7 @@ fun IconTextButton( Text( text = title, + maxLines = 1, ) } }