Fix telegram avatar
This commit is contained in:
@@ -173,22 +173,22 @@ export function TelegramLink() {
|
||||
{/* User Profile Card */}
|
||||
<div className="p-4 bg-gradient-to-br from-gray-700/50 to-gray-800/50 rounded-xl border border-gray-600/50">
|
||||
<div className="flex items-center gap-4">
|
||||
{/* Avatar - prefer uploaded avatar */}
|
||||
{/* Avatar - Telegram avatar */}
|
||||
<div className="relative">
|
||||
{user?.avatar_url || user?.telegram_avatar_url ? (
|
||||
{user?.telegram_avatar_url ? (
|
||||
<img
|
||||
src={user.avatar_url || user.telegram_avatar_url || ''}
|
||||
src={user.telegram_avatar_url}
|
||||
alt={user.nickname}
|
||||
className="w-16 h-16 rounded-full object-cover border-2 border-blue-500/50"
|
||||
className="w-12 h-12 rounded-full object-cover border-2 border-blue-500/50"
|
||||
/>
|
||||
) : (
|
||||
<div className="w-16 h-16 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center border-2 border-blue-500/50">
|
||||
<User className="w-8 h-8 text-white" />
|
||||
<div className="w-12 h-12 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center border-2 border-blue-500/50">
|
||||
<User className="w-6 h-6 text-white" />
|
||||
</div>
|
||||
)}
|
||||
{/* Link indicator */}
|
||||
<div className="absolute -bottom-1 -right-1 w-6 h-6 bg-green-500 rounded-full flex items-center justify-center border-2 border-gray-800">
|
||||
<Link2 className="w-3 h-3 text-white" />
|
||||
<div className="absolute -bottom-1 -right-1 w-5 h-5 bg-green-500 rounded-full flex items-center justify-center border-2 border-gray-800">
|
||||
<Link2 className="w-2.5 h-2.5 text-white" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user