fix: align artifact stars

This commit is contained in:
2026-03-21 02:16:19 +07:00 Unverified
parent 37a979a46f
commit 43b193440b
+5 -3
View File
@@ -612,14 +612,16 @@ export function card(app: App) {
? `${a.main.statValue.toFixed(1)}%` ? `${a.main.statValue.toFixed(1)}%`
: a.main.statValue.toLocaleString()} : a.main.statValue.toLocaleString()}
</div> </div>
<div tw="flex grow max-h-[20%] items-end justify-end gap-[.75em]"> <div tw="flex grow max-h-[20%] items-end justify-end">
<div> <div>
{Array.from({ length: a.stars ?? 0 }, () => {Array.from({ length: a.stars ?? 0 }, () =>
star(".6em"), star(".6em"),
)} )}
</div> </div>
<div tw="text-[75%] leading-none bg-black/50 px-[.25em] py-[.2em] rounded-[.2em] -mb-[.2em]"> <div tw="w-[2em] flex justify-end">
+{a.level} <div tw="text-[75%] leading-none bg-black/50 px-[.25em] py-[.2em] rounded-[.2em] -mb-[.2em]">
+{a.level}
</div>
</div> </div>
</div> </div>
</div> </div>