diff --git a/src/components/Header/Header.module.css b/src/components/Header/Header.module.css index af325b9..74dad05 100644 --- a/src/components/Header/Header.module.css +++ b/src/components/Header/Header.module.css @@ -14,7 +14,11 @@ position: relative; justify-content: space-between; } - +.profileImg{ + width:40px; + height:40px; + border-radius: 50%; +} .activeHeaderContent { diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 6133363..8d03742 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -23,7 +23,9 @@ function Header() { const [mobileMenu, setMobileMenu] = useState(false); const [notifications, setNotifications] = useState([]); const notificationRef = useRef(null); - + const profileImageUrl = user?.profile_photo_path + ? `${import.meta.env.VITE_API_URL}/storage/${user.profile_photo_path}` + : "/person.svg"; useEffect(() => { if (!user) return; @@ -140,7 +142,7 @@ function Header() { profile diff --git a/src/pages/Events/components/Event/Event.module.css b/src/pages/Events/components/Event/Event.module.css index 32f059c..a3a8c25 100644 --- a/src/pages/Events/components/Event/Event.module.css +++ b/src/pages/Events/components/Event/Event.module.css @@ -24,23 +24,22 @@ } .eventImageDiv { - display: flex; - align-items: center; - justify-content: center; - margin-right: 1rem; - width: auto; - height: 6rem; + width: 10rem; + height: 7rem; flex-shrink: 0; + overflow: hidden; + border-radius: 20px; + margin-right: 1rem; } .eventImage { - max-width: 100%; - max-height: 100%; - object-fit: contain; - border-radius: 20px; + width: 100%; + height: 100%; + object-fit: cover; } + .eventContent { display: flex; width: 100%;