feat: Adjust spacing and padding in ConfirmSeedPhraseScreen for improved layout consistency
This commit is contained in:
@@ -196,8 +196,9 @@ fun ConfirmSeedPhraseScreen(
|
|||||||
enter = fadeIn(tween(300)) + scaleIn(initialScale = 0.9f),
|
enter = fadeIn(tween(300)) + scaleIn(initialScale = 0.9f),
|
||||||
exit = fadeOut(tween(300))
|
exit = fadeOut(tween(300))
|
||||||
) {
|
) {
|
||||||
Column {
|
Column(
|
||||||
Spacer(modifier = Modifier.height(12.dp))
|
modifier = Modifier.padding(top = 16.dp, bottom = 0.dp)
|
||||||
|
) {
|
||||||
Card(
|
Card(
|
||||||
colors = CardDefaults.cardColors(
|
colors = CardDefaults.cardColors(
|
||||||
containerColor = Color(0xFF4CAF50).copy(alpha = 0.15f)
|
containerColor = Color(0xFF4CAF50).copy(alpha = 0.15f)
|
||||||
@@ -226,7 +227,7 @@ fun ConfirmSeedPhraseScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(32.dp))
|
Spacer(modifier = Modifier.height(24.dp))
|
||||||
|
|
||||||
// Two column layout like SeedPhraseScreen
|
// Two column layout like SeedPhraseScreen
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
@@ -348,7 +349,7 @@ fun ConfirmSeedPhraseScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.weight(1f))
|
Spacer(modifier = Modifier.height(16.dp))
|
||||||
|
|
||||||
// Continue Button
|
// Continue Button
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
@@ -446,9 +447,11 @@ private fun DisplayWordItem(
|
|||||||
Box(
|
Box(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
.height(48.dp)
|
||||||
.clip(RoundedCornerShape(12.dp))
|
.clip(RoundedCornerShape(12.dp))
|
||||||
.background(bgColor)
|
.background(bgColor)
|
||||||
.padding(horizontal = 16.dp, vertical = 14.dp)
|
.padding(horizontal = 16.dp),
|
||||||
|
contentAlignment = Alignment.CenterStart
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
@@ -497,6 +500,7 @@ private fun ConfirmWordInputItem(
|
|||||||
Box(
|
Box(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
.height(48.dp)
|
||||||
.clip(RoundedCornerShape(12.dp))
|
.clip(RoundedCornerShape(12.dp))
|
||||||
.border(
|
.border(
|
||||||
width = 2.dp,
|
width = 2.dp,
|
||||||
@@ -504,7 +508,8 @@ private fun ConfirmWordInputItem(
|
|||||||
shape = RoundedCornerShape(12.dp)
|
shape = RoundedCornerShape(12.dp)
|
||||||
)
|
)
|
||||||
.background(bgColor)
|
.background(bgColor)
|
||||||
.padding(horizontal = 16.dp, vertical = 14.dp)
|
.padding(horizontal = 16.dp),
|
||||||
|
contentAlignment = Alignment.CenterStart
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
@@ -538,7 +543,8 @@ private fun ConfirmWordInputItem(
|
|||||||
fontSize = 17.sp,
|
fontSize = 17.sp,
|
||||||
color = hintColor,
|
color = hintColor,
|
||||||
fontFamily = FontFamily.Monospace,
|
fontFamily = FontFamily.Monospace,
|
||||||
fontWeight = FontWeight.SemiBold
|
fontWeight = FontWeight.SemiBold,
|
||||||
|
maxLines = 1
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
innerTextField()
|
innerTextField()
|
||||||
|
|||||||
Reference in New Issue
Block a user