Added max lines to welcome page text composables
This commit is contained in:
parent
d5cac58b87
commit
f03165f70a
@ -76,6 +76,7 @@ fun WelcomePage(
|
|||||||
"Version ${AppConstants.APP_VERSION}",
|
"Version ${AppConstants.APP_VERSION}",
|
||||||
color = MaterialTheme.colors.primaryTextColor,
|
color = MaterialTheme.colors.primaryTextColor,
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
|
maxLines = 1,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.BottomEnd)
|
.align(Alignment.BottomEnd)
|
||||||
.padding(bottom = 16.dp, end = 16.dp)
|
.padding(bottom = 16.dp, end = 16.dp)
|
||||||
@ -121,6 +122,7 @@ fun HomeButtons(
|
|||||||
Text(
|
Text(
|
||||||
text = AppConstants.APP_NAME,
|
text = AppConstants.APP_NAME,
|
||||||
fontSize = 32.sp,
|
fontSize = 32.sp,
|
||||||
|
maxLines = 1,
|
||||||
color = MaterialTheme.colors.primaryTextColor,
|
color = MaterialTheme.colors.primaryTextColor,
|
||||||
modifier = Modifier.padding(bottom = 16.dp),
|
modifier = Modifier.padding(bottom = 16.dp),
|
||||||
)
|
)
|
||||||
@ -228,6 +230,7 @@ fun RecentRepositories(appStateManager: AppStateManager, tabViewModel: TabViewMo
|
|||||||
Text(
|
Text(
|
||||||
text = repoDirName,
|
text = repoDirName,
|
||||||
fontSize = 14.sp,
|
fontSize = 14.sp,
|
||||||
|
maxLines = 1,
|
||||||
color = MaterialTheme.colors.primary,
|
color = MaterialTheme.colors.primary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -236,6 +239,7 @@ fun RecentRepositories(appStateManager: AppStateManager, tabViewModel: TabViewMo
|
|||||||
text = repoDirPath,
|
text = repoDirPath,
|
||||||
fontSize = 14.sp,
|
fontSize = 14.sp,
|
||||||
modifier = Modifier.padding(start = 4.dp),
|
modifier = Modifier.padding(start = 4.dp),
|
||||||
|
maxLines = 1,
|
||||||
color = MaterialTheme.colors.secondaryTextColor
|
color = MaterialTheme.colors.secondaryTextColor
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -271,6 +275,7 @@ fun ButtonTile(
|
|||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = title,
|
text = title,
|
||||||
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -301,6 +306,7 @@ fun IconTextButton(
|
|||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = title,
|
text = title,
|
||||||
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user