From dd0a5576122ba8216332a5a8acf3c534c1cf962f Mon Sep 17 00:00:00 2001 From: JustIceO7 Date: Tue, 4 Mar 2025 22:26:37 +0000 Subject: [PATCH] UPDATE: Updated styling for quality of life improvements --- frontend/src/components/Layout/ListItem.tsx | 1 + .../src/components/Navigation/Sidebar.tsx | 5 +++-- frontend/src/components/Stream/ChatPanel.tsx | 2 +- frontend/src/pages/Following.tsx | 1 - frontend/src/pages/UserPage.tsx | 19 ++++++++++++------- frontend/src/pages/VideoPage.tsx | 1 + frontend/src/pages/Vods.tsx | 1 - 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/Layout/ListItem.tsx b/frontend/src/components/Layout/ListItem.tsx index a39f3da..f8d9157 100644 --- a/frontend/src/components/Layout/ListItem.tsx +++ b/frontend/src/components/Layout/ListItem.tsx @@ -91,6 +91,7 @@ const UserListItem: React.FC = ({ title, username, isLive, on }} alt={`user ${username}`} className="rounded-xl border-[0.15em] border-[var(--bg-color)] cursor-pointer" + style={{ backgroundColor: 'white' }} /> diff --git a/frontend/src/components/Navigation/Sidebar.tsx b/frontend/src/components/Navigation/Sidebar.tsx index bd267dc..a718700 100644 --- a/frontend/src/components/Navigation/Sidebar.tsx +++ b/frontend/src/components/Navigation/Sidebar.tsx @@ -99,6 +99,7 @@ const Sidebar: React.FC = ({ extraClasses = "" }) => { alt="profile picture" className="w-[3em] h-[3em] object-cover rounded-full border-[0.15em] border-purple-500 cursor-pointer" onClick={() => navigate(`/user/${username}`)} + style={{ backgroundColor: 'white' }} />
Logged in as
@@ -117,7 +118,7 @@ const Sidebar: React.FC = ({ extraClasses = "" }) => {

Following

-

Streamers

+

Streamers

{followedStreamers.map((streamer) => (
= ({ extraClasses = "" }) => {
-

Categories

+

Categories

{/* Followed Categories */}
diff --git a/frontend/src/components/Stream/ChatPanel.tsx b/frontend/src/components/Stream/ChatPanel.tsx index 63f6638..550eb46 100644 --- a/frontend/src/components/Stream/ChatPanel.tsx +++ b/frontend/src/components/Stream/ChatPanel.tsx @@ -205,7 +205,7 @@ const ChatPanel: React.FC = ({ streamId, onViewerCountChange }) }} alt="User Avatar" className="w-full h-full object-cover" - style={{ width: "2.5em", height: "2.5em" }} + style={{ width: "2.5em", height: "2.5em", backgroundColor: 'white' }} />
diff --git a/frontend/src/pages/Following.tsx b/frontend/src/pages/Following.tsx index 5b8bb85..08b7999 100644 --- a/frontend/src/pages/Following.tsx +++ b/frontend/src/pages/Following.tsx @@ -152,7 +152,6 @@ const Following: React.FC = ({ extraClasses = "" }) => { )};
-
); }; diff --git a/frontend/src/pages/UserPage.tsx b/frontend/src/pages/UserPage.tsx index a29b655..a74cb29 100644 --- a/frontend/src/pages/UserPage.tsx +++ b/frontend/src/pages/UserPage.tsx @@ -161,6 +161,7 @@ const UserPage: React.FC = () => { }} alt={`${profileData.username}'s profile`} className="sm:w-full h-full object-cover rounded-full group-hover:brightness-50 relative z-0 transition-all" + style={{ backgroundColor: 'white' }} /> {/* If current user is the profile user then allow profile picture swap */} @@ -268,30 +269,34 @@ const UserPage: React.FC = () => { >
handleNavigation(`/user/${username}/following?tab=streamers`)} onMouseEnter={(e) => (e.currentTarget.style.boxShadow = "var(--follow-shadow)")} onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")} > -
handleNavigation(`/user/${username}/vods`)} onMouseEnter={(e) => (e.currentTarget.style.boxShadow = "var(--follow-shadow)")} onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")} > - - +
handleNavigation(`/user/${username}/following?tab=categories`)} onMouseEnter={(e) => (e.currentTarget.style.boxShadow = "var(--follow-shadow)")} onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")} > - +
+ +
diff --git a/frontend/src/pages/VideoPage.tsx b/frontend/src/pages/VideoPage.tsx index e000c17..22d1180 100644 --- a/frontend/src/pages/VideoPage.tsx +++ b/frontend/src/pages/VideoPage.tsx @@ -159,6 +159,7 @@ const VideoPage: React.FC = ({ streamerId }) => { alt="streamer" className="w-[3em] h-[3em] rounded-full border-[0.15em] border-purple-500 cursor-pointer" onClick={() => navigate(`/user/${streamerName}`)} + style={{ backgroundColor: 'white' }} />