mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-28 21:39:18 +01:00
Remove some button from status row
This commit is contained in:
parent
21d9fd7b59
commit
2d988d48c1
@ -75,10 +75,12 @@ public struct StatusRowView: View {
|
|||||||
if !isCompact,
|
if !isCompact,
|
||||||
theme.avatarPosition == .leading
|
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) {
|
VStack(alignment: .leading, spacing: .statusComponentSpacing) {
|
||||||
|
@ -15,12 +15,12 @@ struct StatusRowHeaderView: View {
|
|||||||
let viewModel: StatusRowViewModel
|
let viewModel: StatusRowViewModel
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack(alignment: theme.avatarPosition == .top ? .center : .top) {
|
HStack(alignment: theme.avatarPosition == .top ? .center : .top) {
|
||||||
Button {
|
|
||||||
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
|
||||||
} label: {
|
|
||||||
accountView
|
accountView
|
||||||
|
.hoverEffect()
|
||||||
|
.accessibilityAddTraits(.isButton)
|
||||||
|
.onTapGesture {
|
||||||
|
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
|
||||||
Spacer()
|
Spacer()
|
||||||
if !redactionReasons.contains(.placeholder) {
|
if !redactionReasons.contains(.placeholder) {
|
||||||
dateView
|
dateView
|
||||||
|
Loading…
x
Reference in New Issue
Block a user