Merge pull request #548 from j-f1/multiline-content-warning

Allow content warning descriptions to be on multiple lines
This commit is contained in:
Marcus Kida 2022-11-15 07:17:59 +01:00 committed by GitHub
commit e653d937a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,8 @@ 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))