Add 'more options' to each note

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-09-19 18:20:17 -04:00
parent 2208e68726
commit 6f5f090fbe
9 changed files with 193 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
use crate::draft::Draft;
use crate::note_options::process_note_selection;
use crate::{
actionbar::BarAction, column::Columns, imgcache::ImageCache, notecache::NoteCache,
timeline::TimelineId, ui,
@@ -149,6 +150,7 @@ fn timeline_ui(
let resp = ui::NoteView::new(ndb, note_cache, img_cache, &note)
.note_previews(!textmode)
.selectable_text(false)
.use_more_options_button(true)
.show(ui);
if let Some(ba) = resp.action {
@@ -156,6 +158,8 @@ fn timeline_ui(
} else if resp.response.clicked() {
debug!("clicked note");
}
process_note_selection(ui, resp.option_selection, &note);
});
ui::hline(ui);