diff --git a/VDS/Components/Buttons/TextLink/TextLink.swift b/VDS/Components/Buttons/TextLink/TextLink.swift index f3e8a6f3..516131cf 100644 --- a/VDS/Components/Buttons/TextLink/TextLink.swift +++ b/VDS/Components/Buttons/TextLink/TextLink.swift @@ -76,6 +76,7 @@ open class TextLink: Control, Buttonable { //pin stackview to edges label.pinToSuperView() label.numberOfLines = 1 + label.preferredMaxLayoutWidth = 0 heightConstraint = heightAnchor.constraint(equalToConstant: height) heightConstraint?.isActive = true } diff --git a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift index 577ff332..80c6dc99 100644 --- a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift +++ b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift @@ -86,6 +86,7 @@ open class TextLinkCaret: Control, Buttonable { label.pinToSuperView() label.numberOfLines = 1 + label.preferredMaxLayoutWidth = 0 }