mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-14 05:21:12 +00:00
Remove some button from status row
This commit is contained in:
parent
21d9fd7b59
commit
2d988d48c1
2 changed files with 13 additions and 11 deletions
|
@ -75,11 +75,13 @@ public struct StatusRowView: View {
|
|||
if !isCompact,
|
||||
theme.avatarPosition == .leading
|
||||
{
|
||||
Button {
|
||||
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
||||
} label: {
|
||||
AvatarView(viewModel.finalStatus.account.avatar)
|
||||
}
|
||||
AvatarView(viewModel.finalStatus.account.avatar)
|
||||
.accessibility(addTraits: .isButton)
|
||||
.contentShape(Circle())
|
||||
.hoverEffect()
|
||||
.onTapGesture {
|
||||
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
||||
}
|
||||
}
|
||||
VStack(alignment: .leading, spacing: .statusComponentSpacing) {
|
||||
if !isCompact {
|
||||
|
|
|
@ -15,12 +15,12 @@ struct StatusRowHeaderView: View {
|
|||
let viewModel: StatusRowViewModel
|
||||
var body: some View {
|
||||
HStack(alignment: theme.avatarPosition == .top ? .center : .top) {
|
||||
Button {
|
||||
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
||||
} label: {
|
||||
accountView
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
accountView
|
||||
.hoverEffect()
|
||||
.accessibilityAddTraits(.isButton)
|
||||
.onTapGesture {
|
||||
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
||||
}
|
||||
Spacer()
|
||||
if !redactionReasons.contains(.placeholder) {
|
||||
dateView
|
||||
|
|
Loading…
Reference in a new issue