clicking chat quotes now just expands thems

jumping to them is kind of annoying

Changelog-Changed: Clicking a chatroom quote reply will now expand it instead of jumping to it
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-08-09 16:49:41 -07:00
parent 22cad4b072
commit 65710eeb5e
3 changed files with 17 additions and 6 deletions
+5 -1
View File
@@ -14,6 +14,7 @@ struct ChatView: View {
let damus_state: DamusState
@State var expand_reply: Bool = false
@EnvironmentObject var thread: ThreadModel
var just_started: Bool {
@@ -96,8 +97,11 @@ struct ChatView: View {
if let ref_id = thread.replies.lookup(event.id) {
if !is_reply_to_prev() {
ReplyQuoteView(privkey: damus_state.keypair.privkey, quoter: event, event_id: ref_id, image_cache: damus_state.image_cache, profiles: damus_state.profiles)
.frame(maxHeight: 100)
.frame(maxHeight: expand_reply ? nil : 100)
.environmentObject(thread)
.onTapGesture {
expand_reply = !expand_reply
}
ReplyDescription
}
}