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:
parent
52f5213990
commit
16a814a27c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user