Make mentions wide in notifications like in timeline

Changelog-Changed: Make mentions wide in notifications like in timeline
This commit is contained in:
William Casarin
2023-04-03 11:22:32 -07:00
parent f9339440f2
commit 094f63bcff
2 changed files with 1 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ struct NotificationItemView: View {
case .reply(let ev): case .reply(let ev):
NavigationLink(destination: ThreadView(state: state, thread: ThreadModel(event: ev, damus_state: state))) { 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) .buttonStyle(.plain)
} }

View File

@@ -91,7 +91,6 @@ struct NotificationsView: View {
} }
return Color.clear return Color.clear
}) })
.padding(.horizontal)
} }
.coordinateSpace(name: "scroll") .coordinateSpace(name: "scroll")
.onReceive(handle_notify(.scroll_to_top)) { notif in .onReceive(handle_notify(.scroll_to_top)) { notif in