From 9d3ef2758d65e11305aa377467c587c992cd6c21 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 12 Jun 2024 12:48:58 +0930 Subject: [PATCH] Fix some padding --- .../securesms/conversation/newmessage/NewMessageFragment.kt | 4 ++-- .../main/java/org/thoughtcrime/securesms/home/HomeActivity.kt | 2 +- .../onboarding/recoverypassword/RecoveryPasswordActivity.kt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/newmessage/NewMessageFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/newmessage/NewMessageFragment.kt index 4a2b08c3a4..ce387b38f7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/newmessage/NewMessageFragment.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/newmessage/NewMessageFragment.kt @@ -179,8 +179,8 @@ fun EnterAccountId( OutlineButton( modifier = Modifier .align(Alignment.CenterHorizontally) - .padding(horizontal = 64.dp) - .width(200.dp) + .padding(horizontal = LocalDimensions.current.marginLarge) + .fillMaxWidth() .contentDescription(R.string.next), onClick = { callbacks.onContinue() } ) { diff --git a/app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt index b12553ec83..8c18ebd20e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt @@ -392,7 +392,7 @@ class HomeActivity : PassphraseRequiredActionBarActivity(), stringResource(R.string.save_your_recovery_password), style = MaterialTheme.typography.h8 ) - Spacer(Modifier.requiredWidth(LocalDimensions.current.itemSpacingSmall)) + Spacer(Modifier.requiredWidth(LocalDimensions.current.itemSpacingExtraSmall)) SessionShieldIcon() } Text( diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt index 768dd21d07..eaf940dba8 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt @@ -227,6 +227,7 @@ private fun HideRecoveryPasswordCell(onHide: () -> Unit = {}) { style = MaterialTheme.typography.base ) } + Spacer(modifier = Modifier.width(LocalDimensions.current.marginExtraExtraSmall)) DestructiveButtons { OutlineButton( textId = R.string.hide,