ui changes tablet
This commit is contained in:
parent
28b87c7d89
commit
70c6452367
@ -1,6 +1,7 @@
|
||||
package ru.myitschool.work.ui.screen.auth
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
@ -59,10 +60,11 @@ fun AuthScreen(
|
||||
}
|
||||
}
|
||||
|
||||
BoxWithConstraints {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = 48.dp)
|
||||
.padding(horizontal = if(maxWidth < 400.dp) 48.dp else 200.dp)
|
||||
.verticalScroll(rememberScrollState())
|
||||
.imePadding()
|
||||
.imeNestedScroll(),
|
||||
@ -79,6 +81,7 @@ fun AuthScreen(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Content(
|
||||
@ -136,7 +139,8 @@ private fun Content(
|
||||
shape = RoundedCornerShape(20.dp),
|
||||
colors = CardDefaults.cardColors(
|
||||
containerColor = MaterialTheme.colorScheme.errorContainer,
|
||||
)
|
||||
),
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
Text(
|
||||
modifier = Modifier.testTag(TestIds.Auth.ERROR).padding(16.dp),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user