Skip to content

Commit

Permalink
fix(Android): Prevent squashed onboarding images (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaSimon authored Jan 24, 2025
1 parent f827614 commit dc83024
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ fun OnboardingScreenView(
}
),
contentDescription = null,
contentScale = ContentScale.FillBounds,
modifier = Modifier.fillMaxWidth().align(Alignment.Center)
contentScale = ContentScale.Crop,
modifier = Modifier.fillMaxSize().align(Alignment.Center)
)
Image(
painterResource(
Expand Down Expand Up @@ -220,7 +220,7 @@ fun OnboardingScreenView(
}
),
alignment = Alignment.Center,
contentScale = ContentScale.FillBounds
contentScale = ContentScale.Crop
),
) {
Spacer(modifier = Modifier.weight(1f))
Expand Down Expand Up @@ -303,7 +303,7 @@ fun OnboardingScreenView(
}
),
alignment = Alignment.Center,
contentScale = ContentScale.FillBounds
contentScale = ContentScale.Crop
),
) {
Image(
Expand All @@ -317,8 +317,8 @@ fun OnboardingScreenView(
}
),
contentDescription = null,
contentScale = ContentScale.FillBounds,
modifier = Modifier.align(Alignment.Center).fillMaxWidth()
contentScale = ContentScale.Crop,
modifier = Modifier.align(Alignment.Center).fillMaxSize()
)
Image(
painter =
Expand Down

0 comments on commit dc83024

Please sign in to comment.