From 66ec808df24fb909379668d898b85c7c6bc2b650 Mon Sep 17 00:00:00 2001 From: Hrusikesh123 Date: Sat, 6 Sep 2025 21:57:07 +0530 Subject: [PATCH] Profile Page UI Enhancement --- TODO.md | 1 + frontend/src/components/Profile.jsx | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..9d0b5cf --- /dev/null +++ b/TODO.md @@ -0,0 +1 @@ +- [x] Change banner background in Profile.jsx to white in light mode and make upload text always visible diff --git a/frontend/src/components/Profile.jsx b/frontend/src/components/Profile.jsx index 781be40..37303b5 100644 --- a/frontend/src/components/Profile.jsx +++ b/frontend/src/components/Profile.jsx @@ -120,12 +120,12 @@ function Profile() { > {/* Banner area */}
bannerInputRef.current && bannerInputRef.current.click()}> - {draftProfile.bannerUrl ? ( - Banner - ) : ( -
- )} -
Click to upload banner
+{draftProfile.bannerUrl ? ( + Banner +) : ( +
+)} +
Click to upload banner
{/* Delete banner button when image present */}