From a4e59be6dc20fd1a32791b364ac86958d1b58bc5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 6 Nov 2025 19:07:48 -0800 Subject: [PATCH] ui/note: use rolling numbers for note stats Signed-off-by: William Casarin --- crates/notedeck_ui/src/note/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/notedeck_ui/src/note/mod.rs b/crates/notedeck_ui/src/note/mod.rs index 4227bc2..6288d51 100644 --- a/crates/notedeck_ui/src/note/mod.rs +++ b/crates/notedeck_ui/src/note/mod.rs @@ -916,7 +916,8 @@ fn actionbar_ui( }; if count > 0 { - ui.weak(format!("{}", count)); + //ui.weak(format!("{}", count)); + crate::anim::rolling_number(ui, egui::Id::new((note_key, "replies")), count); } } @@ -933,7 +934,7 @@ fn actionbar_ui( if let Some(c) = &counts { let count = c.reactions(); if count > 0 { - ui.weak(format!("{}", count)); + crate::anim::rolling_number(ui, egui::Id::new((note_key, "likes")), count); } } @@ -945,7 +946,7 @@ fn actionbar_ui( if let Some(c) = &counts { let count = c.quotes() + c.reposts(); if count > 0 { - ui.weak(format!("{}", count)); + crate::anim::rolling_number(ui, egui::Id::new((note_key, "quotes")), count as u32); } }