Fix padding on edit view

This commit is contained in:
William Brawner 2024-05-06 19:39:16 -06:00
parent 75e38a97dd
commit de9956cbf7
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -68,11 +68,16 @@ fun MarkdownTextField(
fontFamily = FontFamily.Monospace, fontFamily = FontFamily.Monospace,
color = MaterialTheme.colorScheme.onSurface color = MaterialTheme.colorScheme.onSurface
) )
Column(
modifier = modifier
.fillMaxSize()
.imePadding()
.verticalScroll(rememberScrollState())
) {
CompositionLocalProvider(LocalTextSelectionColors provides colors.textSelectionColors) { CompositionLocalProvider(LocalTextSelectionColors provides colors.textSelectionColors) {
BasicTextField( BasicTextField(
value = textFieldValue, value = textFieldValue,
modifier = modifier.fillMaxSize() modifier = Modifier.fillMaxSize(),
.imePadding(),
onValueChange = setTextFieldAndViewModelValues, onValueChange = setTextFieldAndViewModelValues,
enabled = true, enabled = true,
readOnly = false, readOnly = false,
@ -102,6 +107,7 @@ fun MarkdownTextField(
} }
) )
} }
}
} }
private fun String.annotate(enableReadability: Boolean): AnnotatedString { private fun String.annotate(enableReadability: Boolean): AnnotatedString {