fix: 同步顶部账号头像展示
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-30 17:23:22 +08:00
parent b5f02fff61
commit 89e7bdbed6
3 changed files with 26 additions and 2 deletions

View File

@@ -3575,13 +3575,21 @@ export function RpgEntryHomeView({
className="platform-desktop-search flex items-center gap-3 px-3 py-2.5 text-left"
>
<span
className="flex h-11 w-11 items-center justify-center rounded-full text-base font-black text-white"
className="flex h-11 w-11 items-center justify-center overflow-hidden rounded-full text-base font-black text-white"
style={{
background: 'var(--platform-profile-avatar-fill)',
boxShadow: 'var(--platform-profile-avatar-shadow)',
}}
>
{avatarLabel}
{avatarUrl ? (
<img
src={avatarUrl}
alt=""
className="h-full w-full object-cover"
/>
) : (
avatarLabel
)}
</span>
<span className="min-w-0">
<span className="block truncate text-sm font-semibold text-[var(--platform-text-strong)]">