|
|
@@ -1961,6 +1961,9 @@ private extension ViewController {
|
|
1961
|
1961
|
contentStack.addArrangedSubview(subtitle)
|
|
1962
|
1962
|
contentStack.setCustomSpacing(14, after: subtitle)
|
|
1963
|
1963
|
|
|
|
1964
|
+ titleLabel.widthAnchor.constraint(equalTo: contentStack.widthAnchor).isActive = true
|
|
|
1965
|
+ subtitle.widthAnchor.constraint(equalTo: contentStack.widthAnchor).isActive = true
|
|
|
1966
|
+
|
|
1964
|
1967
|
let endedMeetings = scheduleCachedMeetings
|
|
1965
|
1968
|
.filter { $0.endDate < Date() }
|
|
1966
|
1969
|
.sorted { $0.endDate > $1.endDate }
|
|
|
@@ -1975,9 +1978,12 @@ private extension ViewController {
|
|
1975
|
1978
|
emptyLabel.maximumNumberOfLines = 2
|
|
1976
|
1979
|
emptyLabel.lineBreakMode = .byWordWrapping
|
|
1977
|
1980
|
contentStack.addArrangedSubview(emptyLabel)
|
|
|
1981
|
+ emptyLabel.widthAnchor.constraint(equalTo: contentStack.widthAnchor).isActive = true
|
|
1978
|
1982
|
} else {
|
|
1979
|
1983
|
for meeting in endedMeetings {
|
|
1980
|
|
- contentStack.addArrangedSubview(aiCompanionMeetingCard(meeting))
|
|
|
1984
|
+ let card = aiCompanionMeetingCard(meeting)
|
|
|
1985
|
+ contentStack.addArrangedSubview(card)
|
|
|
1986
|
+ card.widthAnchor.constraint(equalTo: contentStack.widthAnchor).isActive = true
|
|
1981
|
1987
|
}
|
|
1982
|
1988
|
}
|
|
1983
|
1989
|
|