mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 06:54:54 +02:00
Update web/src/lib/components/stats/animated-card.svelte
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
45e934a260
commit
c0ef386905
@@ -20,9 +20,7 @@
|
||||
|
||||
let { title, footer, number }: { title: string; footer: string; number: number } = $props();
|
||||
let element: HTMLSpanElement;
|
||||
let numberString = $derived(() => {
|
||||
return number?.toString().padStart(3, '0');
|
||||
});
|
||||
let numberString = $derived(number?.toString().padStart(3, '0'));
|
||||
|
||||
onMount(async () => {
|
||||
animateCounter(element, number, 3);
|
||||
|
||||
Reference in New Issue
Block a user