Skip to content

Commit

Permalink
fix(MailButton): Button's height changes when the loader is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Jun 9, 2023
1 parent c181ab9 commit 0b97a5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mail/Components/MailButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ struct MailButton: View {
}
}
.opacity(loading ? 0 : 1)
if loading {
LoadingButtonProgressView(style: style)
}

LoadingButtonProgressView(style: style)
.opacity(loading ? 1 : 0)
}
.frame(maxWidth: fullWidth ? UIConstants.componentsMaxWidth : nil)
}
Expand Down

0 comments on commit 0b97a5a

Please sign in to comment.