From 094f63bcff341c41049e7808fca1e5a6f1d882d0 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 3 Apr 2023 11:22:32 -0700 Subject: [PATCH] Make mentions wide in notifications like in timeline Changelog-Changed: Make mentions wide in notifications like in timeline --- damus/Views/Notifications/NotificationItemView.swift | 2 +- damus/Views/Notifications/NotificationsView.swift | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/damus/Views/Notifications/NotificationItemView.swift b/damus/Views/Notifications/NotificationItemView.swift index 7abdf152..5b8a1269 100644 --- a/damus/Views/Notifications/NotificationItemView.swift +++ b/damus/Views/Notifications/NotificationItemView.swift @@ -52,7 +52,7 @@ struct NotificationItemView: View { case .reply(let ev): NavigationLink(destination: ThreadView(state: state, thread: ThreadModel(event: ev, damus_state: state))) { - EventView(damus: state, event: ev) + EventView(damus: state, event: ev, options: [.wide, .truncate_content]) } .buttonStyle(.plain) } diff --git a/damus/Views/Notifications/NotificationsView.swift b/damus/Views/Notifications/NotificationsView.swift index 550d1fa7..38c39c8f 100644 --- a/damus/Views/Notifications/NotificationsView.swift +++ b/damus/Views/Notifications/NotificationsView.swift @@ -91,7 +91,6 @@ struct NotificationsView: View { } return Color.clear }) - .padding(.horizontal) } .coordinateSpace(name: "scroll") .onReceive(handle_notify(.scroll_to_top)) { notif in