style(navbar): enlarge account avatar

This commit is contained in:
FengLee
2026-05-14 21:48:45 +08:00
parent 2c7bd74bbe
commit 9966994935

View File

@@ -32,7 +32,7 @@ const navItems = [
function UserAvatar({ avatarUrl, nickname, size = 'md' }: { avatarUrl?: string | null; nickname: string; size?: 'sm' | 'md' }) {
const [imageFailed, setImageFailed] = useState(false);
const initial = (nickname || '用').trim().charAt(0).toUpperCase();
const sizeClass = size === 'sm' ? 'h-5 w-5 text-[10px]' : 'h-6 w-6 text-xs';
const sizeClass = size === 'sm' ? 'h-5 w-5 text-[10px]' : 'h-8 w-8 text-sm';
useEffect(() => {
setImageFailed(false);