Fix leading avatar incorrect position close #249
This commit is contained in:
parent
a0ef5048fa
commit
d9cf9ea59a
@ -28,31 +28,37 @@ public struct StatusRowView: View {
|
|||||||
EmptyView()
|
EmptyView()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
HStack(alignment: .top, spacing: .statusColumnsSpacing) {
|
VStack(alignment: .leading) {
|
||||||
if !viewModel.isCompact,
|
if !viewModel.isCompact, theme.avatarPosition == .leading {
|
||||||
theme.avatarPosition == .leading,
|
reblogView
|
||||||
let status: AnyStatus = viewModel.status.reblog ?? viewModel.status
|
replyView
|
||||||
{
|
|
||||||
Button {
|
|
||||||
routerPath.navigate(to: .accountDetailWithAccount(account: status.account))
|
|
||||||
} label: {
|
|
||||||
AvatarView(url: status.account.avatar, size: .status)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
VStack(alignment: .leading) {
|
HStack(alignment: .top, spacing: .statusColumnsSpacing) {
|
||||||
if !viewModel.isCompact {
|
if !viewModel.isCompact,
|
||||||
reblogView
|
theme.avatarPosition == .leading,
|
||||||
replyView
|
let status: AnyStatus = viewModel.status.reblog ?? viewModel.status
|
||||||
|
{
|
||||||
|
Button {
|
||||||
|
routerPath.navigate(to: .accountDetailWithAccount(account: status.account))
|
||||||
|
} label: {
|
||||||
|
AvatarView(url: status.account.avatar, size: .status)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
statusView
|
VStack(alignment: .leading) {
|
||||||
if viewModel.showActions && !viewModel.isRemote, theme.statusActionsDisplay != .none {
|
if !viewModel.isCompact, theme.avatarPosition == .top {
|
||||||
StatusActionsView(viewModel: viewModel)
|
reblogView
|
||||||
.padding(.top, 8)
|
replyView
|
||||||
.tint(viewModel.isFocused ? theme.tintColor : .gray)
|
}
|
||||||
.contentShape(Rectangle())
|
statusView
|
||||||
.onTapGesture {
|
if viewModel.showActions && !viewModel.isRemote, theme.statusActionsDisplay != .none {
|
||||||
viewModel.navigateToDetail(routerPath: routerPath)
|
StatusActionsView(viewModel: viewModel)
|
||||||
}
|
.padding(.top, 8)
|
||||||
|
.tint(viewModel.isFocused ? theme.tintColor : .gray)
|
||||||
|
.contentShape(Rectangle())
|
||||||
|
.onTapGesture {
|
||||||
|
viewModel.navigateToDetail(routerPath: routerPath)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user