Fix status collection cells being too far inset
This commit is contained in:
parent
e4f3735c9f
commit
cfeb87d2ba
|
@ -495,8 +495,8 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
|
||||||
filteredLabel.removeFromSuperview()
|
filteredLabel.removeFromSuperview()
|
||||||
contentView.addSubview(statusContainer)
|
contentView.addSubview(statusContainer)
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
statusContainer.leadingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.leadingAnchor : contentView.leadingAnchor),
|
statusContainer.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
|
||||||
statusContainer.trailingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.trailingAnchor : contentView.trailingAnchor),
|
statusContainer.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
|
||||||
statusContainer.topAnchor.constraint(equalTo: contentView.topAnchor),
|
statusContainer.topAnchor.constraint(equalTo: contentView.topAnchor),
|
||||||
statusContainer.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
statusContainer.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
||||||
])
|
])
|
||||||
|
@ -506,8 +506,8 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
|
||||||
statusContainer.removeFromSuperview()
|
statusContainer.removeFromSuperview()
|
||||||
contentView.addSubview(filteredLabel)
|
contentView.addSubview(filteredLabel)
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
filteredLabel.leadingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.leadingAnchor : contentView.leadingAnchor),
|
filteredLabel.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
|
||||||
filteredLabel.trailingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.trailingAnchor : contentView.trailingAnchor),
|
filteredLabel.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
|
||||||
filteredLabel.topAnchor.constraint(equalToSystemSpacingBelow: contentView.topAnchor, multiplier: 1),
|
filteredLabel.topAnchor.constraint(equalToSystemSpacingBelow: contentView.topAnchor, multiplier: 1),
|
||||||
contentView.bottomAnchor.constraint(equalToSystemSpacingBelow: filteredLabel.bottomAnchor, multiplier: 1),
|
contentView.bottomAnchor.constraint(equalToSystemSpacingBelow: filteredLabel.bottomAnchor, multiplier: 1),
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue