mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-12 06:37:15 +01:00
Fix follow button placement in the center (#1033)
Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
This commit is contained in:
parent
b47eaac9e7
commit
293d680510
@ -34,7 +34,7 @@ public struct AccountsListRow: View {
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
HStack(alignment: .top) {
|
||||
HStack {
|
||||
AvatarView(url: viewModel.account.avatar, size: .status)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
EmojiTextApp(.init(stringValue: viewModel.account.safeDisplayName), emojis: viewModel.account.emojis)
|
||||
@ -60,12 +60,14 @@ public struct AccountsListRow: View {
|
||||
if currentAccount.account?.id != viewModel.account.id,
|
||||
let relationShip = viewModel.relationShip
|
||||
{
|
||||
VStack(alignment: .center) {
|
||||
FollowButton(viewModel: .init(accountId: viewModel.account.id,
|
||||
relationship: relationShip,
|
||||
shouldDisplayNotify: false,
|
||||
relationshipUpdated: { _ in }))
|
||||
}
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
viewModel.client = client
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user