commit a4e59be6dc20fd1a32791b364ac86958d1b58bc5
parent ff77e7f54394000c52fecfbc32a815f2eea1c4dc
Author: William Casarin <jb55@jb55.com>
Date: Thu, 6 Nov 2025 19:07:48 -0800
ui/note: use rolling numbers for note stats
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
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
@@ -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);
}
}