- |
+ |
diff --git a/app/(app)/layout.tsx b/app/(app)/layout.tsx
index 54f9e9c..cd31a9b 100644
--- a/app/(app)/layout.tsx
+++ b/app/(app)/layout.tsx
@@ -54,14 +54,14 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
{/* Demo Banner */}
-
+
{/* Sidebar flush left */}
{/* Main column (header + content) */}
-
+
{/* Header aligned with content column */}
@@ -71,7 +71,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
{/* Main content area */}
-
+
{children}
@@ -180,14 +180,14 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
};
return (
-
+
{/* Sidebar flush left */}
{/* Main column (header + content) */}
-
+
{/* Header aligned with content column */}
@@ -197,7 +197,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
{/* Main content area */}
-
+
{children}
@@ -302,14 +302,14 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
const displayInfo = isStaff ? staffOrgInfo : clientInfo;
return (
-
+
{/* Sidebar flush left */}
{/* Main column (header + content) */}
-
+
{/* Header aligned with content column */}
@@ -319,7 +319,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
{/* Main content area */}
-
+
{children}
diff --git a/app/(app)/page.tsx b/app/(app)/page.tsx
index 569edf0..13432af 100644
--- a/app/(app)/page.tsx
+++ b/app/(app)/page.tsx
@@ -147,26 +147,28 @@ export default function Dashboard() {
))}
-
-
+
+
-
diff --git a/app/(app)/signatures-electroniques/page.tsx b/app/(app)/signatures-electroniques/page.tsx
index 7b165a2..794dd17 100644
--- a/app/(app)/signatures-electroniques/page.tsx
+++ b/app/(app)/signatures-electroniques/page.tsx
@@ -763,29 +763,29 @@ export default function SignaturesElectroniques() {
{/* Statut de la signature */}
-
+
{currentSignature ? (
<>
-
+
Signature connue
setShowSignatureModal(true)}
- className="px-4 py-1.5 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 transition-colors"
+ className="px-4 py-1.5 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 transition-colors w-full sm:w-auto"
>
Voir / modifier la signature
>
) : (
<>
-
+
setShowSignatureModal(true)}
- className="px-4 py-1.5 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 transition-colors"
+ className="px-4 py-1.5 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 transition-colors w-full sm:w-auto"
>
Ajouter une signature
@@ -1046,7 +1046,7 @@ export default function SignaturesElectroniques() {
{/* Affichage de la signature actuelle */}
{currentSignature && (
-
+
@@ -1054,28 +1054,30 @@ export default function SignaturesElectroniques() {
setShowDeleteConfirm(true)}
disabled={uploadingSignature}
- className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-red-600 hover:text-red-700 hover:bg-red-50 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
+ className="flex items-center justify-center gap-1.5 px-3 py-1.5 text-sm font-medium text-red-600 hover:text-red-700 hover:bg-red-50 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed w-full sm:w-auto"
>
Supprimer
) : (
-
- Confirmer ?
-
- Oui, supprimer
-
- setShowDeleteConfirm(false)}
- disabled={uploadingSignature}
- className="px-2 py-1 text-xs font-medium text-slate-600 hover:text-slate-800 hover:bg-slate-100 rounded transition-colors disabled:opacity-50"
- >
- Annuler
-
+
+ Confirmer ?
+
+
+ Oui, supprimer
+
+ setShowDeleteConfirm(false)}
+ disabled={uploadingSignature}
+ className="flex-1 sm:flex-none px-2 py-1 text-xs font-medium text-slate-600 hover:text-slate-800 hover:bg-slate-100 rounded transition-colors disabled:opacity-50"
+ >
+ Annuler
+
+
)}
diff --git a/app/(app)/vos-acces/page.tsx b/app/(app)/vos-acces/page.tsx
index a5b901e..193187d 100644
--- a/app/(app)/vos-acces/page.tsx
+++ b/app/(app)/vos-acces/page.tsx
@@ -204,13 +204,13 @@ export default function StaffUsersListPage() {
return (
-
+
- Utilisateurs de la structure {clientInfo.name}
+ Utilisateurs de la structure {clientInfo.name}
+ Créer un utilisateur
@@ -239,49 +239,50 @@ export default function StaffUsersListPage() {
-
-
-
- | Prénom |
- Email |
- Niveau |
- Créé le |
- Statut |
- Actions |
-
-
-
- {members.length === 0 ? (
+
+
+
- |
- Aucun utilisateur pour cette structure.
- |
+ Prénom |
+ Email |
+ Niveau |
+ Créé le |
+ Statut |
+ Actions |
- ) : (
- sortedMembers.map((m) => {
- const created = m.created_at ? new Date(m.created_at as string) : null;
- const createdFmt = created
- ? created.toLocaleString("fr-FR", {
- year: "numeric",
- month: "2-digit",
- day: "2-digit",
- hour: "2-digit",
- minute: "2-digit",
- })
- : "—";
- const status = m.revoked ? "Révoqué" : "Actif";
- const disabled = !!m.revoked;
- const isSelf =
- (currentUserId && m.user_id === currentUserId) ||
- (currentUserEmail && typeof m.email === "string" && m.email.toLowerCase() === currentUserEmail.toLowerCase());
- // console.debug("ROW SELF CHECK", { currentUserId, rowUserId: m.user_id, currentUserEmail, rowEmail: m.email, isSelf });
- return (
-
- | {m.first_name || "—"} |
- {m.email} |
- {m.role || "—"} |
- {createdFmt} |
- {status} |
+
+
+ {members.length === 0 ? (
+
+ |
+ Aucun utilisateur pour cette structure.
+ |
+
+ ) : (
+ sortedMembers.map((m) => {
+ const created = m.created_at ? new Date(m.created_at as string) : null;
+ const createdFmt = created
+ ? created.toLocaleString("fr-FR", {
+ year: "numeric",
+ month: "2-digit",
+ day: "2-digit",
+ hour: "2-digit",
+ minute: "2-digit",
+ })
+ : "—";
+ const status = m.revoked ? "Révoqué" : "Actif";
+ const disabled = !!m.revoked;
+ const isSelf =
+ (currentUserId && m.user_id === currentUserId) ||
+ (currentUserEmail && typeof m.email === "string" && m.email.toLowerCase() === currentUserEmail.toLowerCase());
+ // console.debug("ROW SELF CHECK", { currentUserId, rowUserId: m.user_id, currentUserEmail, rowEmail: m.email, isSelf });
+ return (
+
+ | {m.first_name || "—"} |
+ {m.email} |
+ {m.role || "—"} |
+ {createdFmt} |
+ {status} |
{
m.role === "SUPER_ADMIN" ? (
@@ -341,6 +342,7 @@ export default function StaffUsersListPage() {
)}
|
+
diff --git a/app/signin/page.tsx b/app/signin/page.tsx
index 62faf11..5203667 100644
--- a/app/signin/page.tsx
+++ b/app/signin/page.tsx
@@ -538,7 +538,7 @@ export default function SignIn() {
|