From a4289ad223fe2f06d3c8a2bcd49dd50ce90ecece Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 3 Nov 2024 23:14:24 -0800 Subject: fix: make sidebar scrollable if list grows too long --- src/components/Footer/Footer.tsx | 52 +++++++++++----------- src/components/SubscriberTable/SubscriberTable.tsx | 5 ++- src/components/TitleBar/TitleBar.tsx | 8 ++-- 3 files changed, 34 insertions(+), 31 deletions(-) (limited to 'src') diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 1c501d8..39262d8 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,33 +1,31 @@ import React from "react"; -import Link from 'next/link'; - +import Link from "next/link"; const Footer = () => { - return ( - - ); + return ( + + ); }; export default Footer; diff --git a/src/components/SubscriberTable/SubscriberTable.tsx b/src/components/SubscriberTable/SubscriberTable.tsx index 766cd3d..6c19e44 100644 --- a/src/components/SubscriberTable/SubscriberTable.tsx +++ b/src/components/SubscriberTable/SubscriberTable.tsx @@ -26,7 +26,10 @@ const DataTable = ({ channel_data, timestamp }: SubscriberDataTableProp) => { return ( <> -
+

Subscriber Count

diff --git a/src/components/TitleBar/TitleBar.tsx b/src/components/TitleBar/TitleBar.tsx index c4a65c4..2d5da15 100644 --- a/src/components/TitleBar/TitleBar.tsx +++ b/src/components/TitleBar/TitleBar.tsx @@ -122,7 +122,11 @@ const TitleBar: React.FC = ({ className={`fixed top-0 left-0 h-screen bg-black text-white shadow-lg transition-transform transform ${ isSidebarOpen ? "translate-x-0" : "-translate-x-full" } duration-500 ease-in-out z-50`} - style={{ width: "16rem", fontFamily: "Quantico, sans-serif" }} + style={{ + width: "16rem", + fontFamily: "Quantico, sans-serif", + overflowY: "auto", + }} >
PhaseTracker @@ -202,8 +206,6 @@ const TitleBar: React.FC = ({ )}
- - {/* Content overlay when sidebar is open */} {isSidebarOpen && (