@lastbrain/module-auth 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,7 +97,7 @@ export function UserDetailPage({ userId, moduleUserTabs = [], }) {
97
97
  }
98
98
  const isAdmin = Array.isArray(userProfile.raw_app_meta_data?.roles) &&
99
99
  userProfile.raw_app_meta_data.roles.includes("admin");
100
- return (_jsxs("div", { className: "max-w-[calc(100vw-2rem)] mt-4 space-y-6", children: [_jsx(Card, { children: _jsxs(CardHeader, { className: "flex flex-col md:flex-row gap-4", children: [_jsx(Avatar, { isBordered: true, src: userProfile.avatar_sizes?.large || userProfile.avatar_url
100
+ return (_jsxs("div", { className: "max-w-[calc(100vw-8rem)] mx-auto mt-4 space-y-6", children: [_jsx(Card, { children: _jsxs(CardHeader, { className: "flex flex-col md:flex-row gap-4", children: [_jsx(Avatar, { isBordered: true, src: userProfile.avatar_sizes?.large || userProfile.avatar_url
101
101
  ? `/api/storage/${userProfile.avatar_sizes?.large || userProfile.avatar_url}`
102
102
  : undefined, name: userProfile.full_name || userProfile.email, size: "lg" }), _jsxs("div", { className: "w-full flex flex-col gap-1", children: [_jsxs("div", { className: "w-full flex flex-col md:flex-row justify-between", children: [_jsx("h1", { className: "text-xl font-bold", children: userProfile.full_name || userProfile.email }), _jsxs("p", { className: "text-sm text-default-500 ", children: [_jsx("span", { className: "", children: "Derni\u00E8re connexion:" }), " ", userProfile.last_sign_in_at
103
103
  ? new Date(userProfile.last_sign_in_at).toLocaleDateString()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lastbrain/module-auth",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Module d'authentification complet pour LastBrain avec Supabase",
5
5
  "private": false,
6
6
  "type": "module",
@@ -184,7 +184,7 @@ export function UserDetailPage({
184
184
  userProfile.raw_app_meta_data.roles.includes("admin");
185
185
 
186
186
  return (
187
- <div className="max-w-[calc(100vw-2rem)] mt-4 space-y-6">
187
+ <div className="max-w-[calc(100vw-8rem)] mx-auto mt-4 space-y-6">
188
188
  {/* Header utilisateur */}
189
189
  <Card>
190
190
  <CardHeader className="flex flex-col md:flex-row gap-4">