Fix more UI bugs
This commit is contained in:
parent
a44cd8ba3b
commit
4b7d644c43
|
|
@ -306,10 +306,13 @@ private fun DoPatchBody(
|
|||
}
|
||||
}
|
||||
|
||||
BoxWithConstraints(modifier.padding(24.dp)) {
|
||||
val shellBoxMaxHeight =
|
||||
if (patchState == PatchState.PATCHING) maxHeight
|
||||
else maxHeight - ButtonDefaults.MinHeight - 12.dp
|
||||
Column(
|
||||
modifier
|
||||
Modifier
|
||||
.fillMaxSize()
|
||||
.padding(24.dp)
|
||||
.wrapContentHeight()
|
||||
.animateContentSize(spring(stiffness = Spring.StiffnessLow))
|
||||
) {
|
||||
|
|
@ -322,7 +325,7 @@ private fun DoPatchBody(
|
|||
state = scrollState,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(max = 320.dp)
|
||||
.heightIn(max = shellBoxMaxHeight)
|
||||
.clip(RoundedCornerShape(32.dp))
|
||||
.background(brush)
|
||||
.padding(horizontal = 24.dp, vertical = 18.dp)
|
||||
|
|
@ -377,4 +380,5 @@ private fun DoPatchBody(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue