Fix further PR remarks

This commit is contained in:
ismailgulek 2022-06-06 13:32:31 +03:00
parent 4e9ed93def
commit 45f27e611c
No known key found for this signature in database
GPG key ID: E96336D42D9470A9
3 changed files with 6 additions and 9 deletions

View file

@ -71,12 +71,7 @@ struct AuthenticationChoosePasswordScreen: View {
/// The text field and submit button where the user enters an email address.
var form: some View {
VStack(alignment: .leading, spacing: 12) {
if #available(iOS 15.0, *) {
textField
.onSubmit(submit)
} else {
textField
}
textField
HStack(alignment: .center, spacing: 8) {
Toggle(VectorL10n.authenticationChoosePasswordSignoutAllDevices, isOn: $viewModel.signoutAllDevices)

View file

@ -41,7 +41,8 @@ struct AuthenticationForgotPasswordScreen: View {
if viewModel.viewState.hasSentEmail {
waitingFooter
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 20 : 36)
.padding(.bottom, OnboardingMetrics.actionButtonBottomPadding)
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 0 : 16)
.padding(.horizontal, 16)
}
}
@ -90,7 +91,7 @@ struct AuthenticationForgotPasswordScreen: View {
/// The footer shown whilst waiting for the user to tap the link in the email.
var waitingFooter: some View {
VStack(spacing: 14) {
VStack(spacing: 12) {
Button(action: done) {
Text(VectorL10n.done)
}
@ -100,6 +101,7 @@ struct AuthenticationForgotPasswordScreen: View {
Button { viewModel.send(viewAction: .resend) } label: {
Text(VectorL10n.authenticationForgotPasswordWaitingButton)
.font(theme.fonts.body)
.padding(.vertical, 12)
.multilineTextAlignment(.center)
}
.accessibilityIdentifier("resendButton")

View file

@ -32,7 +32,7 @@ struct OnboardingBreakerScreenBackground: View {
}
/// The background gradient used with light mode.
let gradient = Gradient (colors: Constants.gradientColors)
let gradient = Gradient(colors: Constants.gradientColors)
init(_ isGradientEnabled: Bool = true) {
self.isGradientEnabled = isGradientEnabled