search: truncate content
sometimes its too big for search results Changelog-Changed: Truncate fulltext search results Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -26,7 +26,7 @@ struct NDBSearchView: View {
|
||||
|
||||
LazyVStack {
|
||||
ForEach(results, id: \.self) { note in
|
||||
EventView(damus: damus_state, event: note)
|
||||
EventView(damus: damus_state, event: note, options: [.truncate_content])
|
||||
.onTapGesture {
|
||||
let event = note.get_inner_event(cache: damus_state.events) ?? note
|
||||
let thread = ThreadModel(event: event, damus_state: damus_state)
|
||||
|
||||
Reference in New Issue
Block a user