1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

ui: make blurred videos viewable by allowing blur to disappear once tapped

Closes: https://github.com/damus-io/damus/issues/1247
Changelog-Fixed: Make blurred videos viewable by allowing blur to disappear once tapped
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Daniel D’Aquino 2023-09-13 21:07:52 +00:00 committed by William Casarin
parent c4a9f2fdb2
commit 510432bb98

View File

@ -26,7 +26,7 @@ struct NoteContentView: View {
let damus_state: DamusState
let event: NostrEvent
let show_images: Bool
@State var show_images: Bool
let size: EventViewKind
let preview_height: CGFloat?
let options: EventViewOptions
@ -139,7 +139,9 @@ struct NoteContentView: View {
ZStack {
ImageCarousel(state: damus_state, evid: event.id, urls: artifacts.media)
Blur()
.disabled(true)
.onTapGesture {
show_images = true
}
}
//.cornerRadius(10)
}