Fix leading avatar incorrect position close #249

This commit is contained in:
Thomas Ricouard 2023-01-24 19:07:55 +01:00
parent a0ef5048fa
commit d9cf9ea59a

View file

@ -28,6 +28,11 @@ public struct StatusRowView: View {
EmptyView()
}
} else {
VStack(alignment: .leading) {
if !viewModel.isCompact, theme.avatarPosition == .leading {
reblogView
replyView
}
HStack(alignment: .top, spacing: .statusColumnsSpacing) {
if !viewModel.isCompact,
theme.avatarPosition == .leading,
@ -40,7 +45,7 @@ public struct StatusRowView: View {
}
}
VStack(alignment: .leading) {
if !viewModel.isCompact {
if !viewModel.isCompact, theme.avatarPosition == .top {
reblogView
replyView
}
@ -56,6 +61,7 @@ public struct StatusRowView: View {
}
}
}
}
.onAppear {
if reasons.isEmpty {
viewModel.client = client