Fix follow button placement in the center (#1033)

Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
This commit is contained in:
Yusuke Arakawa 2023-02-24 16:42:24 +09:00 committed by GitHub
parent b47eaac9e7
commit 293d680510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,10 +60,12 @@ public struct AccountsListRow: View {
if currentAccount.account?.id != viewModel.account.id,
let relationShip = viewModel.relationShip
{
FollowButton(viewModel: .init(accountId: viewModel.account.id,
VStack(alignment: .center) {
FollowButton(viewModel: .init(accountId: viewModel.account.id,
relationship: relationShip,
shouldDisplayNotify: false,
relationshipUpdated: { _ in }))
}
}
}
.onAppear {