damus

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

commit 85f86ee31fc167587d8ef6b49fe4f85552876783
parent 96decd2392ce72c9fee10d748be06dd96ba7d1ea
Author: OlegAba <mail@olegaba.com>
Date:   Tue,  7 Mar 2023 18:12:21 -0500

Fix selected event text padding

Closes: #753

Diffstat:
Mdamus/Components/SelectableText.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/damus/Components/SelectableText.swift b/damus/Components/SelectableText.swift @@ -24,6 +24,7 @@ struct SelectableText: View { fixedWidth: selectedTextWidth, height: $selectedTextHeight ) + .padding([.leading, .trailing], -1.0) .onAppear { self.selectedTextWidth = geo.size.width } @@ -52,6 +53,8 @@ struct SelectableText: View { view.backgroundColor = .clear view.textContainer.lineFragmentPadding = 0 view.textContainerInset = .zero + view.textContainerInset.left = 1.0 + view.textContainerInset.right = 1.0 return view }