Compare commits

..

No commits in common. "6328627a9756093c078749821504dde919cebaf0" and "dd6813c058dfbecbeab77163656a15136da3968e" have entirely different histories.

2 changed files with 4 additions and 10 deletions

View File

@ -719,11 +719,7 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
// there is no existing gap // there is no existing gap
applySnapshotBeforeScrolling = true applySnapshotBeforeScrolling = true
} }
if let first = currentItems.first { snapshot.insertItems([.gap], beforeItem: currentItems.first!)
snapshot.insertItems([.gap], beforeItem: first)
} else {
snapshot.appendItems([.gap], toSection: .statuses)
}
snapshot.insertItems(presentItems.map { .status(id: $0, collapseState: .unknown, filterState: .unknown) }, beforeItem: .gap) snapshot.insertItems(presentItems.map { .status(id: $0, collapseState: .unknown, filterState: .unknown) }, beforeItem: .gap)
if applySnapshotBeforeScrolling { if applySnapshotBeforeScrolling {

View File

@ -218,9 +218,9 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status
]) ])
} }
private let accountDetailToContentWarningSpacer = UIView().configure { private let accountDetailToContentSpacer = UIView().configure {
$0.backgroundColor = .clear $0.backgroundColor = .clear
$0.heightAnchor.constraint(equalToConstant: 4).isActive = true $0.heightAnchor.constraint(equalToConstant: 8).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,
accountDetailToContentWarningSpacer, accountDetailToContentSpacer,
contentWarningLabel, contentWarningLabel,
contentWarningToCollapseButtonSpacer, contentWarningToCollapseButtonSpacer,
collapseButton, collapseButton,
@ -330,8 +330,6 @@ 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