mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 21:36:38 +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 =
|
||||||
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)) {
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user