commit 094f63bcff341c41049e7808fca1e5a6f1d882d0
parent f9339440f216ce841b5e9f35401f05dabda7081e
Author: William Casarin <jb55@jb55.com>
Date: Mon, 3 Apr 2023 11:22:32 -0700
Make mentions wide in notifications like in timeline
Changelog-Changed: Make mentions wide in notifications like in timeline
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git 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
@@ -91,7 +91,6 @@ struct NotificationsView: View {
}
return Color.clear
})
- .padding(.horizontal)
}
.coordinateSpace(name: "scroll")
.onReceive(handle_notify(.scroll_to_top)) { notif in