Fix GradientFollowButton to have consistent width and autoscale text limited to 1 line

Changelog-Fixed: Fixed GradientFollowButton to have consistent width and autoscale text limited to 1 line

Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
2024-12-10 19:45:43 -05:00
committed by Daniel D’Aquino
parent a1b1ce949b
commit ee4cbf7363
2 changed files with 10 additions and 2 deletions
@@ -48,7 +48,10 @@ struct SuggestedUserView: View {
.foregroundColor(.gray)
.font(.caption)
}
.frame(maxWidth: .infinity, alignment: .leading)
Spacer()
GradientFollowButton(target: target, follows_you: false, follow_state: damus_state.contacts.follow_state(target.pubkey))
}
}