Consistent follow/unfollow button width

Changelog-Fixed: Make follow/unfollow button a consistent width
This commit is contained in:
OlegAba
2023-01-17 13:06:10 -05:00
committed by William Casarin
parent 00c819140b
commit e07b31e0a1

View File

@@ -19,8 +19,7 @@ struct FollowButtonView: View {
follow_state = perform_follow_btn_action(follow_state, target: target)
} label: {
Text(follow_btn_txt(follow_state))
.frame(height: 30)
.padding(.horizontal, 25)
.frame(width: 105, height: 30)
//.padding(.vertical, 10)
.font(.caption.weight(.bold))
.foregroundColor(follow_state == .unfollows ? filledTextColor() : borderColor())