Skip to content

Commit

Permalink
process 'more options' for previews
Browse files Browse the repository at this point in the history
forgot to add this part

Signed-off-by: kernelkind <[email protected]>
  • Loading branch information
kernelkind committed Sep 25, 2024
1 parent ad319b6 commit 171889b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/note/contents.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::images::ImageType;
use crate::imgcache::ImageCache;
use crate::note_options::process_note_selection;
use crate::notecache::NoteCache;
use crate::ui::note::NoteOptions;
use crate::ui::ProfilePic;
Expand Down Expand Up @@ -103,13 +104,15 @@ pub fn render_note_preview(
ui.visuals().noninteractive().bg_stroke.color,
))
.show(ui, |ui| {
ui::NoteView::new(ndb, note_cache, img_cache, &note)
let resp = ui::NoteView::new(ndb, note_cache, img_cache, &note)
.actionbar(false)
.small_pfp(true)
.wide(true)
.note_previews(false)
.use_more_options_button(true)
.show(ui);

process_note_selection(ui, resp.option_selection, &note);
})
.response
}
Expand Down

0 comments on commit 171889b

Please sign in to comment.