Skip to content

Commit

Permalink
Fix error message ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
yatatsu committed Nov 13, 2024
1 parent b5a2120 commit dcef31b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Views/CardFormDisplayStyledView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public class CardFormDisplayStyledView: CardFormView, CardFormProperties {
private func setupErrorLabel() -> UILabel {
let label = UILabel()
label.font = .systemFont(ofSize: 13)
label.numberOfLines = 0
return label
}

Expand Down Expand Up @@ -517,9 +518,6 @@ public class CardFormDisplayStyledView: CardFormView, CardFormProperties {
contentStackView.addArrangedSubview(phoneNumberErrorLabel)

NSLayoutConstraint.activate([
cardHolderErrorLabel.heightAnchor.constraint(equalToConstant: 20.0),
emailErrorLabel.heightAnchor.constraint(equalToConstant: 20.0),
phoneNumberErrorLabel.heightAnchor.constraint(equalToConstant: 20.0),
cardHolderStackView.leadingAnchor.constraint(equalTo: contentStackView.leadingAnchor),
cardHolderStackView.trailingAnchor.constraint(equalTo: contentStackView.trailingAnchor),
extrasStackView.leadingAnchor.constraint(equalTo: contentStackView.leadingAnchor),
Expand Down

0 comments on commit dcef31b

Please sign in to comment.