fix(themes): show author avatars on installed theme cards

Installed theme cards rendered only an initial because their manifests store the author name, not an avatar URL. Use the EZPPFarm avatar endpoint with the author name and keep the initial as the image-load fallback, matching the community workshop presentation.
This commit is contained in:
HorizonCode committed 2026-11-03 23:39:25 +01:00
1 parent 760bd9a283
commit 5eea428802
1 file changed
+15 -4
+15 -4
View File
@@ -4069,11 +4069,22 @@
class="absolute right-2 bottom-2 left-2 flex items-center justify-between gap-2" class="absolute right-2 bottom-2 left-2 flex items-center justify-between gap-2"
> >
<div class="flex min-w-0 items-center gap-1.5"> <div class="flex min-w-0 items-center gap-1.5">
<span <Avatar.Root
class="flex size-5 shrink-0 items-center justify-center rounded-full border border-white/20 bg-theme-800 text-[9px] font-bold text-white/80 uppercase" class="size-5 shrink-0 border border-white/20 bg-theme-800"
> >
{theme.author.trim().charAt(0) || '?'} <Avatar.Image
</span> src={theme.author.trim()
? `https://a.ez-pp.farm/${encodeURIComponent(theme.author.trim())}`
: undefined}
alt={theme.author || 'Unknown author'}
class="object-cover"
/>
<Avatar.Fallback
class="text-[9px] font-bold text-white/80 uppercase"
>
{theme.author.trim().charAt(0) || '?'}
</Avatar.Fallback>
</Avatar.Root>
<span <span
class="truncate text-[11px] font-semibold text-white/95 drop-shadow-sm" class="truncate text-[11px] font-semibold text-white/95 drop-shadow-sm"
> >