Allow content warning descriptions to be on multiple lines

This commit is contained in:
Jed Fox 2022-11-09 14:01:49 -05:00
parent 081c900069
commit 8e7bdd4aec
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ extension MetaLabel {
textColor = Asset.Colors.Label.primary.color
textAlignment = .center
paragraphStyle.alignment = .center
numberOfLines = 0
textContainer.maximumNumberOfLines = 0
case .statusSpoilerBanner:
font = UIFontMetrics(forTextStyle: .headline).scaledFont(for: .systemFont(ofSize: 17, weight: .regular))
textColor = Asset.Colors.Label.primary.color