Show full bleed images on selected events in threads

Changelog-Changed: Show full bleed images on selected events in threads
This commit is contained in:
William Casarin
2023-04-04 10:58:16 -07:00
parent 9ca959d8d3
commit 98d11fb71e
3 changed files with 18 additions and 8 deletions

View File

@@ -30,8 +30,8 @@ struct ThreadView: View {
MutedEventView(damus_state: state,
event: parent_event,
scroller: reader,
selected: false
)
selected: false)
.padding(.horizontal)
.onTapGesture {
thread.set_active_event(parent_event, privkey: state.keypair.privkey)
scroll_to_event(scroller: reader, id: parent_event.id, delay: 0.1, animate: false)
@@ -49,7 +49,7 @@ struct ThreadView: View {
Rectangle()
.fill(Color.gray.opacity(0.25))
.frame(width: 2, height: eventHeight)
.offset(x: 25, y: 40)
.offset(x: 40, y: 40)
})
// MARK: - Actual event view
@@ -68,6 +68,7 @@ struct ThreadView: View {
scroller: nil,
selected: false
)
.padding(.horizontal)
.onTapGesture {
thread.set_active_event(child_event, privkey: state.keypair.privkey)
scroll_to_event(scroller: reader, id: child_event.id, delay: 0.1, animate: false)
@@ -76,7 +77,7 @@ struct ThreadView: View {
Divider()
.padding([.top], 4)
}
}.padding()
}
}.navigationBarTitle(NSLocalizedString("Thread", comment: "Navigation bar title for note thread."))
.onAppear {
thread.subscribe()