1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-17 19:30:10 +01:00

Cap the height of the status card

This commit is contained in:
Jed Fox 2022-12-02 16:02:05 -05:00
parent 52f5213990
commit 16a814a27c
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1

View File

@ -144,6 +144,9 @@ public final class StatusCardControl: UIControl {
// This priority is important or constraints break;
// it still renders the card correctly.
.priority(.defaultLow - 1),
// set a reasonable max height for very tall images
imageView.heightAnchor
.constraint(lessThanOrEqualToConstant: 400)
]
case .compact:
containerStackView.alignment = .center