Fix extra spacing above content in conversation main status
This commit is contained in:
parent
c6043d60ee
commit
6328627a97
|
@ -218,9 +218,9 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
private let accountDetailToContentSpacer = UIView().configure {
|
private let accountDetailToContentWarningSpacer = UIView().configure {
|
||||||
$0.backgroundColor = .clear
|
$0.backgroundColor = .clear
|
||||||
$0.heightAnchor.constraint(equalToConstant: 8).isActive = true
|
$0.heightAnchor.constraint(equalToConstant: 4).isActive = true
|
||||||
}
|
}
|
||||||
private let contentWarningToCollapseButtonSpacer = UIView().configure {
|
private let contentWarningToCollapseButtonSpacer = UIView().configure {
|
||||||
$0.backgroundColor = .clear
|
$0.backgroundColor = .clear
|
||||||
|
@ -237,7 +237,7 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status
|
||||||
|
|
||||||
private lazy var mainVStack = UIStackView(arrangedSubviews: [
|
private lazy var mainVStack = UIStackView(arrangedSubviews: [
|
||||||
accountDetailContainerView,
|
accountDetailContainerView,
|
||||||
accountDetailToContentSpacer,
|
accountDetailToContentWarningSpacer,
|
||||||
contentWarningLabel,
|
contentWarningLabel,
|
||||||
contentWarningToCollapseButtonSpacer,
|
contentWarningToCollapseButtonSpacer,
|
||||||
collapseButton,
|
collapseButton,
|
||||||
|
@ -330,6 +330,8 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status
|
||||||
self.statusState = state
|
self.statusState = state
|
||||||
|
|
||||||
doUpdateUI(status: status)
|
doUpdateUI(status: status)
|
||||||
|
accountDetailToContentWarningSpacer.isHidden = collapseButton.isHidden
|
||||||
|
contentWarningToCollapseButtonSpacer.isHidden = collapseButton.isHidden
|
||||||
|
|
||||||
accountDetailAccessibilityElement.navigationDelegate = delegate
|
accountDetailAccessibilityElement.navigationDelegate = delegate
|
||||||
accountDetailAccessibilityElement.accountID = accountID
|
accountDetailAccessibilityElement.accountID = accountID
|
||||||
|
|
Loading…
Reference in New Issue