|
|
@@ -67,6 +67,7 @@ extension LNUserRelationItemCell {
|
|
|
if curItem?.relateion.contains(.followed) == true {
|
|
|
if curItem?.relateion.contains(.fans) == true {
|
|
|
followLabel.isHidden = true
|
|
|
+ followLabel.text = nil
|
|
|
followButton.setBackgroundImage(nil, for: .normal)
|
|
|
let config = UIImage.SymbolConfiguration(pointSize: 12)
|
|
|
followButton.setImage(.init(systemName: "arrow.left.arrow.right", withConfiguration: config)?.withRenderingMode(.alwaysTemplate), for: .normal)
|
|
|
@@ -82,6 +83,7 @@ extension LNUserRelationItemCell {
|
|
|
} else {
|
|
|
if curItem?.relateion.contains(.fans) == true {
|
|
|
followLabel.isHidden = true
|
|
|
+ followLabel.text = nil
|
|
|
followButton.setBackgroundImage(.primary_7, for: .normal)
|
|
|
let config = UIImage.SymbolConfiguration(pointSize: 12)
|
|
|
followButton.setImage(.init(systemName: "arrow.left.arrow.right", withConfiguration: config)?.withRenderingMode(.alwaysTemplate), for: .normal)
|
|
|
@@ -124,6 +126,7 @@ extension LNUserRelationItemCell {
|
|
|
make.centerY.equalToSuperview()
|
|
|
make.trailing.equalToSuperview().offset(-16)
|
|
|
make.height.equalTo(22)
|
|
|
+ make.width.greaterThanOrEqualTo(48)
|
|
|
}
|
|
|
|
|
|
followLabel.font = .body_xs
|