From 24f70930ebc6901d2b725a65e5ac9a79afdbfad3 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 3 Aug 2025 14:45:43 -0700 Subject: [PATCH] note: turn off full date view for previews Signed-off-by: William Casarin --- crates/notedeck_ui/src/note/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/notedeck_ui/src/note/mod.rs b/crates/notedeck_ui/src/note/mod.rs index 43f7cda1..69176b68 100644 --- a/crates/notedeck_ui/src/note/mod.rs +++ b/crates/notedeck_ui/src/note/mod.rs @@ -117,6 +117,7 @@ impl<'a, 'd> NoteView<'a, 'd> { .note_previews(false) .options_button(true) .is_preview(true) + .full_date(false) } pub fn textmode(mut self, enable: bool) -> Self { @@ -124,6 +125,11 @@ impl<'a, 'd> NoteView<'a, 'd> { self } + pub fn full_date(mut self, enable: bool) -> Self { + self.options_mut().set(NoteOptions::FullCreatedDate, enable); + self + } + pub fn actionbar(mut self, enable: bool) -> Self { self.options_mut().set(NoteOptions::ActionBar, enable); self