damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit a2749eaaaa0d6cda28841090a4880e4b27557032
parent 83c9289345a413b38621699b9763e6e148c3ead2
Author: OlegAba <mail@olegaba.com>
Date:   Tue, 21 Feb 2023 21:54:10 -0500

Fix event dividers

Diffstat:
Mdamus/Views/DirectMessagesView.swift | 3+++
Mdamus/Views/EventView.swift | 3---
Mdamus/Views/ThreadV2View.swift | 7+++++++
Mdamus/Views/Timeline/InnerTimelineView.swift | 3+++
4 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/damus/Views/DirectMessagesView.swift b/damus/Views/DirectMessagesView.swift @@ -41,6 +41,9 @@ struct DirectMessagesView: View { ForEach(dms, id: \.0) { tup in MaybeEvent(tup) .padding(.top, 10) + + Divider() + .padding([.top], 10) } } } diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift @@ -86,9 +86,6 @@ struct EventView: View { TextEvent(damus: damus, event: event, pubkey: pubkey, has_action_bar: has_action_bar, booster_pubkey: nil) .padding([.top], 6) } - - Divider() - .padding([.top], 4) } } } diff --git a/damus/Views/ThreadV2View.swift b/damus/Views/ThreadV2View.swift @@ -265,6 +265,10 @@ struct ThreadV2View: View { navigating: $navigating, selected: false ) + + Divider() + .padding(.top, 4) + .padding(.leading, 25 * 2) } }.background(GeometryReader { geometry in // get the height and width of the EventView view @@ -299,6 +303,9 @@ struct ThreadV2View: View { navigating: $navigating, selected: false ) + + Divider() + .padding([.top], 4) } } }.padding() diff --git a/damus/Views/Timeline/InnerTimelineView.swift b/damus/Views/Timeline/InnerTimelineView.swift @@ -42,6 +42,9 @@ struct InnerTimelineView: View { navigating = true } .padding(.top, 10) + + Divider() + .padding([.top], 10) } } }