commit 24f70930ebc6901d2b725a65e5ac9a79afdbfad3
parent 5b1bc442d48ca1f473cd5f33bb786cc3ca2dc92d
Author: William Casarin <jb55@jb55.com>
Date: Sun, 3 Aug 2025 14:45:43 -0700
note: turn off full date view for previews
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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