diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 92c7d95..d0f4688 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -427,7 +427,7 @@ export default function Sidebar({ {!isCollapsed && } {accountOpen && (
event.stopPropagation()} style={{ position: "absolute", bottom: "calc(100% + 8px)", left: isCollapsed ? "calc(100% + 14px)" : 8, width: 300, maxHeight: "min(520px, calc(100vh - 32px))", overflowY: "auto", padding: 12, background: "var(--bg-secondary)", border: "1px solid var(--border)", borderRadius: 8, boxShadow: "0 16px 40px rgba(0,0,0,0.22)", cursor: "default", zIndex: 60 }}> -
{currentUser?.name || currentUser?.email || "Authenticated User"} · {formatRoleLabel(currentUser?.role)}{currentUser?.role === "SUPER_ADMIN" && }
{currentUser?.email}
+
{currentUser?.name || currentUser?.email || "Authenticated User"} · {formatRoleLabel(currentUser?.role)}{currentUser?.role === "SUPER_ADMIN" && }
{currentUser?.email}
{accountMenuSections.map((section) =>
{section.label}
{section.items.map((item) => { const Icon = item.icon; const active = pathname === item.href; return { setAccountOpen(false); onMobileClose(); }} style={{ alignItems: "center", background: active ? "rgba(59, 130, 246, 0.12)" : "transparent", borderRadius: 7, color: active ? "#3b82f6" : "var(--text-secondary)", display: "flex", fontSize: 13, fontWeight: 500, gap: 9, padding: "8px 6px", textDecoration: "none" }}>{item.label}; })}
)}