fix(don): correct goal width formula
Build and Push Image / build-backend (push) Successful in 28s
Build and Push Image / build-frontend (push) Successful in 3m18s
Build and Push Image / push (push) Successful in 50s

This commit is contained in:
2026-06-15 07:33:19 +00:00 Unverified
parent 325bb01324
commit 414f407d08
+1 -1
View File
@@ -80,7 +80,7 @@ export default function TopDonateWidget() {
<motion.div
className="absolute inset-1.5 rounded-full bg-linear-to-b from-[#FD0000] to-[#830000]"
animate={{
width: `calc(${Math.min(1, Number(bar.amount) / bar.goal) * 100}% - 12px)`,
width: `calc(6px + ${Math.min(1, Number(bar.amount) / bar.goal)} * (100% - 12px))`,
}}
initial={{
width: 0,