mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix wrong modifier usage.
This commit is contained in:
committed by
Benoit Marty
parent
9167bf516f
commit
fba639fd8f
+3
-3
@@ -92,7 +92,7 @@ private fun OnBoardingContent(modifier: Modifier = Modifier) {
|
|||||||
modifier = modifier.fillMaxSize(),
|
modifier = modifier.fillMaxSize(),
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
modifier = modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
contentAlignment = BiasAlignment(
|
contentAlignment = BiasAlignment(
|
||||||
horizontalBias = 0f,
|
horizontalBias = 0f,
|
||||||
verticalBias = -0.4f
|
verticalBias = -0.4f
|
||||||
@@ -101,7 +101,7 @@ private fun OnBoardingContent(modifier: Modifier = Modifier) {
|
|||||||
// Dark and light icon does not have the same size, add padding to the smaller one
|
// Dark and light icon does not have the same size, add padding to the smaller one
|
||||||
val imagePadding = if (isLight) 28.dp else 0.dp
|
val imagePadding = if (isLight) 28.dp else 0.dp
|
||||||
Image(
|
Image(
|
||||||
modifier = modifier
|
modifier = Modifier
|
||||||
.size(278.dp)
|
.size(278.dp)
|
||||||
.padding(imagePadding),
|
.padding(imagePadding),
|
||||||
painter = painterResource(id = iconDrawableRes),
|
painter = painterResource(id = iconDrawableRes),
|
||||||
@@ -109,7 +109,7 @@ private fun OnBoardingContent(modifier: Modifier = Modifier) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
Box(
|
Box(
|
||||||
modifier = modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
contentAlignment = BiasAlignment(
|
contentAlignment = BiasAlignment(
|
||||||
horizontalBias = 0f,
|
horizontalBias = 0f,
|
||||||
verticalBias = 0.6f
|
verticalBias = 0.6f
|
||||||
|
|||||||
Reference in New Issue
Block a user