Fix conversation thread links appearing above avatar when lifted by pointer

This commit is contained in:
Shadowfacts 2024-06-08 11:28:19 -07:00
parent 1b6f0c07fd
commit cd0d8fffcb
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,7 @@ extension StatusCollectionViewCell {
view.backgroundColor = .tintColor.withAlphaComponent(0.5)
view.layer.cornerRadius = 2.5
view.layer.maskedCorners = [.layerMinXMaxYCorner, .layerMaxXMaxYCorner]
view.layer.zPosition = -1
prevThreadLinkView = view
contentView.addSubview(view)
NSLayoutConstraint.activate([
@ -278,6 +279,7 @@ extension StatusCollectionViewCell {
view.backgroundColor = .tintColor.withAlphaComponent(0.5)
view.layer.cornerRadius = 2.5
view.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
view.layer.zPosition = -1
nextThreadLinkView = view
contentView.addSubview(view)
let bottomConstraint = view.bottomAnchor.constraint(equalTo: contentView.bottomAnchor)