Fix image sizing

This commit is contained in:
Justin Mazzocchi 2021-01-27 22:36:46 -08:00
parent ab9cdc48ee
commit f0a7f52550
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 3 additions and 1 deletions

View file

@ -84,6 +84,8 @@ final class AccountFieldView: UIView {
checkButton.tintColor = .systemGreen
checkButton.isHidden = verifiedAt == nil
checkButton.showsMenuAsPrimaryAction = true
checkButton.setContentCompressionResistancePriority(.required, for: .horizontal)
checkButton.setContentHuggingPriority(.required, for: .horizontal)
if let verifiedAt = verifiedAt {
checkButton.menu = UIMenu(

View file

@ -48,5 +48,5 @@ extension PollOptionButton {
}
private extension PollOptionButton {
static let titleEdgeInsets = UIEdgeInsets(top: 0, left: .compactSpacing, bottom: 0, right: .compactSpacing)
static let titleEdgeInsets = UIEdgeInsets(top: 0, left: .defaultSpacing, bottom: 0, right: .compactSpacing)
}