style(navbar): enlarge account avatar
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user