Tweak onboarding for small screens
This commit is contained in:
parent
25c529981e
commit
0d57250352
2 changed files with 7 additions and 7 deletions
|
@ -46,13 +46,13 @@ internal fun OnboardingContent(
|
|||
onImportClick = onImportClick,
|
||||
)
|
||||
},
|
||||
verticalArrangement = Arrangement.spacedBy(MainTheme.sizes.medium, Alignment.CenterVertically),
|
||||
verticalArrangement = Arrangement.SpaceEvenly,
|
||||
) {
|
||||
item {
|
||||
WelcomeLogo(
|
||||
modifier = Modifier
|
||||
.defaultItemModifier()
|
||||
.padding(top = MainTheme.spacings.quadruple),
|
||||
.padding(top = MainTheme.spacings.double),
|
||||
)
|
||||
}
|
||||
item {
|
||||
|
@ -122,8 +122,8 @@ private fun WelcomeFooter(
|
|||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
Column(
|
||||
modifier = modifier,
|
||||
verticalArrangement = Arrangement.spacedBy(MainTheme.spacings.default),
|
||||
modifier = modifier.padding(bottom = MainTheme.spacings.double),
|
||||
verticalArrangement = Arrangement.spacedBy(MainTheme.spacings.quarter),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
) {
|
||||
Button(
|
||||
|
@ -139,7 +139,7 @@ private fun WelcomeFooter(
|
|||
|
||||
private fun Modifier.defaultItemModifier() = composed {
|
||||
fillMaxWidth()
|
||||
.padding(MainTheme.spacings.double)
|
||||
.padding(MainTheme.spacings.default)
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="330dp"
|
||||
android:height="330dp"
|
||||
android:width="300dp"
|
||||
android:height="300dp"
|
||||
android:viewportWidth="330"
|
||||
android:viewportHeight="330"
|
||||
tools:ignore="VectorRaster">
|
||||
|
|
Loading…
Reference in a new issue