mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 04:57:20 +01:00
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:
@@ -183,7 +183,7 @@ fun EditPostView(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxWidth()
|
||||
.verticalScroll(scrollState),
|
||||
.verticalScroll(scrollState, reverseScrolling = true),
|
||||
) {
|
||||
postViewModel.editedFromNote?.let {
|
||||
Row(Modifier.heightIn(max = 200.dp)) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -206,7 +206,7 @@ private fun NewProductBody(
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = Size10dp)
|
||||
.weight(1f)
|
||||
.verticalScroll(scrollState),
|
||||
.verticalScroll(scrollState, reverseScrolling = true),
|
||||
) {
|
||||
Row(
|
||||
verticalAlignment = CenterVertically,
|
||||
|
||||
@@ -236,7 +236,7 @@ private fun NewPostScreenBody(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxWidth()
|
||||
.verticalScroll(scrollState),
|
||||
.verticalScroll(scrollState, reverseScrolling = true),
|
||||
) {
|
||||
postViewModel.originalNote?.let {
|
||||
Row {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user