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 =
Modifier Modifier
.fillMaxWidth() .fillMaxWidth()
.verticalScroll(scrollState), .verticalScroll(scrollState, reverseScrolling = true),
) { ) {
postViewModel.editedFromNote?.let { postViewModel.editedFromNote?.let {
Row(Modifier.heightIn(max = 200.dp)) { Row(Modifier.heightIn(max = 200.dp)) {

View File

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

View File

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

View File

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

View File

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

View File

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