add
This commit is contained in:
parent
aa74f689bd
commit
6bb80d8824
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue