Activates reverse scrolling for the new post screen in order to avoid hiding the cursor behind the keyboard when typing long texts.

This commit is contained in:
Vitor Pamplona
2025-10-29 11:23:09 -04:00
parent a9aadb60fc
commit d44b24936c
6 changed files with 6 additions and 6 deletions

View File

@@ -183,7 +183,7 @@ fun EditPostView(
modifier =
Modifier
.fillMaxWidth()
.verticalScroll(scrollState),
.verticalScroll(scrollState, reverseScrolling = true),
) {
postViewModel.editedFromNote?.let {
Row(Modifier.heightIn(max = 200.dp)) {

View File

@@ -203,7 +203,7 @@ private fun GenericCommentPostBody(
end = Size10dp,
).weight(1f),
) {
Column(Modifier.fillMaxWidth().verticalScroll(scrollState)) {
Column(Modifier.fillMaxWidth().verticalScroll(scrollState, reverseScrolling = true)) {
postViewModel.externalIdentity?.let {
Row {
DisplayExternalId(it, accountViewModel, nav)

View File

@@ -228,7 +228,7 @@ fun GroupDMScreenContent(
Column(Modifier.fillMaxSize()) {
Row(Modifier.fillMaxWidth().padding(horizontal = Size10dp).weight(1f)) {
Column(
Modifier.fillMaxWidth().verticalScroll(scrollState),
Modifier.fillMaxWidth().verticalScroll(scrollState, reverseScrolling = true),
verticalArrangement = spacedBy(Size10dp),
) {
SendDirectMessageTo(postViewModel, accountViewModel)

View File

@@ -206,7 +206,7 @@ private fun NewProductBody(
.fillMaxWidth()
.padding(horizontal = Size10dp)
.weight(1f)
.verticalScroll(scrollState),
.verticalScroll(scrollState, reverseScrolling = true),
) {
Row(
verticalAlignment = CenterVertically,

View File

@@ -236,7 +236,7 @@ private fun NewPostScreenBody(
modifier =
Modifier
.fillMaxWidth()
.verticalScroll(scrollState),
.verticalScroll(scrollState, reverseScrolling = true),
) {
postViewModel.originalNote?.let {
Row {

View File

@@ -184,7 +184,7 @@ fun PublicMessageScreenContent(
Column(Modifier.fillMaxSize()) {
Row(Modifier.fillMaxWidth().padding(horizontal = Size10dp).weight(1f)) {
Column(
Modifier.fillMaxWidth().verticalScroll(scrollState),
Modifier.fillMaxWidth().verticalScroll(scrollState, reverseScrolling = true),
verticalArrangement = spacedBy(Size10dp),
) {
val replyTo = postViewModel.replyingTo