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;
|
// This priority is important or constraints break;
|
||||||
// it still renders the card correctly.
|
// it still renders the card correctly.
|
||||||
.priority(.defaultLow - 1),
|
.priority(.defaultLow - 1),
|
||||||
|
// set a reasonable max height for very tall images
|
||||||
|
imageView.heightAnchor
|
||||||
|
.constraint(lessThanOrEqualToConstant: 400)
|
||||||
]
|
]
|
||||||
case .compact:
|
case .compact:
|
||||||
containerStackView.alignment = .center
|
containerStackView.alignment = .center
|
||||||
|
|
Loading…
Reference in New Issue