From bed21f834ec54e8b0ba81bad95cb24d43d74df5d Mon Sep 17 00:00:00 2001 From: ORDONNEAU Antoine Date: Tue, 17 Mar 2026 11:44:18 +0100 Subject: [PATCH] fix reglage css --- src/components/ui/Modal/Modal.module.css | 5 ---- src/components/ui/Modal/Modal.tsx | 2 +- src/pages/Profile/ProfilePage.module.css | 4 +-- src/pages/Profile/ProfilePage.tsx | 10 +++---- .../SettingsModal/SettingsModal.tsx | 28 +++++++++++-------- 5 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/components/ui/Modal/Modal.module.css b/src/components/ui/Modal/Modal.module.css index 5d38f53..8e97c9d 100644 --- a/src/components/ui/Modal/Modal.module.css +++ b/src/components/ui/Modal/Modal.module.css @@ -14,19 +14,14 @@ } .modal { - padding: 20px 20px 20px 20px; border-radius: 20px; min-width: 300px; max-width: 70%; max-height: none; position: relative; - box-shadow: 0 4px 15px rgba(0,0,0,0.2); width: clamp(300px, 50vw, 600px); - border: 1px solid rgba(200, 200, 200, 0.3); - background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); - color: #000; outline: none; } diff --git a/src/components/ui/Modal/Modal.tsx b/src/components/ui/Modal/Modal.tsx index 772b6dc..9cffb35 100644 --- a/src/components/ui/Modal/Modal.tsx +++ b/src/components/ui/Modal/Modal.tsx @@ -23,7 +23,7 @@ const Modal = ({ open, onClose, children, title }: ModalProps) => { return createPortal(
-
+
{title &&

{title}

} {children}
diff --git a/src/pages/Profile/ProfilePage.module.css b/src/pages/Profile/ProfilePage.module.css index 288c0d1..1e3cc3a 100644 --- a/src/pages/Profile/ProfilePage.module.css +++ b/src/pages/Profile/ProfilePage.module.css @@ -12,7 +12,7 @@ box-sizing: border-box; } -.settingImage { +.settingAccount { display: flex; justify-content: center; align-items: center; @@ -126,7 +126,7 @@ box-sizing: border-box; } -.settingImage { +.settingAcount { width: 100%; display: flex; justify-content: center; diff --git a/src/pages/Profile/ProfilePage.tsx b/src/pages/Profile/ProfilePage.tsx index 8eaa107..f43ece6 100644 --- a/src/pages/Profile/ProfilePage.tsx +++ b/src/pages/Profile/ProfilePage.tsx @@ -144,6 +144,11 @@ function ProfilePage() { {user?.isAdmin && profileUser && !isOwnProfile && ( )} + {isOwnProfile && ( +
+ +
+ )}
@@ -157,11 +162,6 @@ function ProfilePage() {

Téléphone : {profileUser?.phone ?? "Non renseigné"}

- {isOwnProfile && ( -
- -
- )}

Tâches :

diff --git a/src/pages/Profile/components/SettingsModal/SettingsModal.tsx b/src/pages/Profile/components/SettingsModal/SettingsModal.tsx index 118f430..7d39830 100644 --- a/src/pages/Profile/components/SettingsModal/SettingsModal.tsx +++ b/src/pages/Profile/components/SettingsModal/SettingsModal.tsx @@ -89,18 +89,7 @@ export default function SettingsModal() { >
-

Compte

- - - - +

Modifier les informations du compte

Changer de Prénom

Apparence
+ +
+

Sécurité du compte

+ + + + +