Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: fix desktop user panel (#10272)

Arvin Xu6a374d2f3276
diff --git a/src/features/User/UserPanel/PanelContent.tsx b/src/features/User/UserPanel/PanelContent.tsx
index 0dcbd71dba3..152c1c97381 100644
--- a/src/features/User/UserPanel/PanelContent.tsx
+++ b/src/features/User/UserPanel/PanelContent.tsx
@@ -1,4 +1,4 @@
-import { enableNextAuth } from '@lobechat/const';
+import { enableNextAuth, isDesktop } from '@lobechat/const';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import { memo } from 'react';
@@ -37,7 +37,7 @@ const PanelContent = memo<{ closePopover: () => void }>(({ closePopover }) => {
return (
<Flexbox gap={2} style={{ minWidth: 300 }}>
- {isLoginWithAuth ? (
+ {isDesktop || isLoginWithAuth ? (
<>
<UserInfo avatarProps={{ clickable: false }} />