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
1 changed files with 3 additions and 0 deletions

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