Fixed multiline text field in rebase interactive

This commit is contained in:
Abdelilah El Aissaoui 2022-10-25 19:56:23 +02:00
parent d934b83c4e
commit f2412616af
2 changed files with 5 additions and 2 deletions

View File

@ -139,7 +139,7 @@ fun RebaseCommit(
AdjustableOutlinedTextField(
modifier = Modifier
.weight(1f)
.height(40.dp),
.heightIn(min = 40.dp),
enabled = rebaseLine.action == Action.REWORD,
value = newMessage,
onValueChange = {
@ -147,6 +147,10 @@ fun RebaseCommit(
onMessageChanged(it)
},
textStyle = MaterialTheme.typography.body2,
backgroundColor = if(rebaseLine.action == Action.REWORD) {
MaterialTheme.colors.background
} else
MaterialTheme.colors.surface
)
}

View File

@ -57,7 +57,6 @@ fun AdjustableOutlinedTextField(
Box(
modifier = modifier
.height(IntrinsicSize.Min)
.background(Color.Red)
) {
BasicTextField(
modifier = Modifier