ui/note: use rolling numbers for note stats

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-11-06 19:07:48 -08:00
parent ff77e7f543
commit a4e59be6dc

View File

@@ -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);
}
}