Fix padding on edit view
This commit is contained in:
parent
75e38a97dd
commit
de9956cbf7
1 changed files with 13 additions and 7 deletions
|
@ -68,11 +68,16 @@ fun MarkdownTextField(
|
|||
fontFamily = FontFamily.Monospace,
|
||||
color = MaterialTheme.colorScheme.onSurface
|
||||
)
|
||||
Column(
|
||||
modifier = modifier
|
||||
.fillMaxSize()
|
||||
.imePadding()
|
||||
.verticalScroll(rememberScrollState())
|
||||
) {
|
||||
CompositionLocalProvider(LocalTextSelectionColors provides colors.textSelectionColors) {
|
||||
BasicTextField(
|
||||
value = textFieldValue,
|
||||
modifier = modifier.fillMaxSize()
|
||||
.imePadding(),
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
onValueChange = setTextFieldAndViewModelValues,
|
||||
enabled = true,
|
||||
readOnly = false,
|
||||
|
@ -102,6 +107,7 @@ fun MarkdownTextField(
|
|||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun String.annotate(enableReadability: Boolean): AnnotatedString {
|
||||
|
|
Loading…
Reference in a new issue