forked from shadowfacts/Tusker
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()
|
||||
contentView.addSubview(statusContainer)
|
||||
NSLayoutConstraint.activate([
|
||||
statusContainer.leadingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.leadingAnchor : contentView.leadingAnchor),
|
||||
statusContainer.trailingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.trailingAnchor : contentView.trailingAnchor),
|
||||
statusContainer.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
|
||||
statusContainer.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
|
||||
statusContainer.topAnchor.constraint(equalTo: contentView.topAnchor),
|
||||
statusContainer.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
||||
])
|
||||
|
@ -506,8 +506,8 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
|
|||
statusContainer.removeFromSuperview()
|
||||
contentView.addSubview(filteredLabel)
|
||||
NSLayoutConstraint.activate([
|
||||
filteredLabel.leadingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.leadingAnchor : contentView.leadingAnchor),
|
||||
filteredLabel.trailingAnchor.constraint(equalTo: UIDevice.current.userInterfaceIdiom == .pad ? contentView.readableContentGuide.trailingAnchor : contentView.trailingAnchor),
|
||||
filteredLabel.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
|
||||
filteredLabel.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
|
||||
filteredLabel.topAnchor.constraint(equalToSystemSpacingBelow: contentView.topAnchor, multiplier: 1),
|
||||
contentView.bottomAnchor.constraint(equalToSystemSpacingBelow: filteredLabel.bottomAnchor, multiplier: 1),
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue