This commit is contained in:
ditiqi 2025-01-26 19:43:26 +08:00
parent aa74f689bd
commit 6bb80d8824
2 changed files with 4 additions and 3 deletions

View File

@ -142,9 +142,10 @@ export function UserMenu() {
onClick={toggleMenu}
className="flex items-center rounded-full transition-all duration-200 ease-in-out">
{/* Avatar 容器,相对定位 */}
<div className="relative">
<Avatar
src={user?.avatar}
src={(user?.meta as any)?.photoUrl}
name={user?.showname || user?.username}
size={40}
className="ring-2 ring-white hover:ring-[#00538E]/90

View File

@ -34,9 +34,9 @@ export default function PostCommentCard({
<div className="flex items-start space-x-2 gap-2">
<div className="flex-shrink-0">
<CustomAvatar
src={post.author?.avatar}
src={post.author?.meta?.photoUrl}
size={50}
name={!post.author?.avatar && post.author?.showname}
name={!post.author?.meta?.photoUrl && post.author?.showname}
randomString={
post?.meta?.signature || post?.meta?.ip
}></CustomAvatar>