diff --git a/damus/Views/Events/EventProfile.swift b/damus/Views/Events/EventProfile.swift index 7b2fe4ef..fb55dd17 100644 --- a/damus/Views/Events/EventProfile.swift +++ b/damus/Views/Events/EventProfile.swift @@ -38,11 +38,10 @@ struct EventProfile: View { var body: some View { HStack(alignment: .center) { - VStack { - NavigationLink(value: Route.ProfileByKey(pubkey: pubkey)) { - ProfilePicView(pubkey: pubkey, size: pfp_size, highlight: .none, profiles: damus_state.profiles, disable_animation: disable_animation) + ProfilePicView(pubkey: pubkey, size: pfp_size, highlight: .none, profiles: damus_state.profiles, disable_animation: disable_animation) + .onTapGesture { + damus_state.nav.push(route: .ProfileByKey(pubkey: pubkey)) } - } VStack(alignment: .leading) { EventProfileName(pubkey: pubkey, profile: profile, damus: damus_state, size: size) diff --git a/damus/Views/Profile/MaybeAnonPfpView.swift b/damus/Views/Profile/MaybeAnonPfpView.swift index 5a2400a7..717069fd 100644 --- a/damus/Views/Profile/MaybeAnonPfpView.swift +++ b/damus/Views/Profile/MaybeAnonPfpView.swift @@ -28,9 +28,10 @@ struct MaybeAnonPfpView: View { .font(.largeTitle) .frame(width: size, height: size) } else { - NavigationLink(value: Route.ProfileByKey(pubkey: pubkey)) { - ProfilePicView(pubkey: pubkey, size: size, highlight: .none, profiles: state.profiles, disable_animation: state.settings.disable_animation) - } + ProfilePicView(pubkey: pubkey, size: size, highlight: .none, profiles: state.profiles, disable_animation: state.settings.disable_animation) + .onTapGesture { + state.nav.push(route: Route.ProfileByKey(pubkey: pubkey)) + } } } }