From a73b572725a444d857cbaf6b0dbb331ccad5a87f Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Sun, 11 Aug 2024 12:07:14 -0700 Subject: [PATCH] improve dashboard responsiveness --- frontend/src/components/layouts.tsx | 7 +++---- frontend/src/components/sidebar.tsx | 2 +- frontend/src/components/topbar.tsx | 6 +++--- frontend/src/lib/socket.tsx | 2 +- frontend/src/pages/home/dashboard.tsx | 8 ++++++-- frontend/src/pages/resources.tsx | 1 - 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/layouts.tsx b/frontend/src/components/layouts.tsx index c832f1593..8beac7488 100644 --- a/frontend/src/components/layouts.tsx +++ b/frontend/src/components/layouts.tsx @@ -35,7 +35,7 @@ export const Layout = () => {
-
+
@@ -53,7 +53,6 @@ interface PageProps { subtitle?: ReactNode; actions?: ReactNode; superHeader?: ReactNode; - wrapSize?: "md" | "lg" | "xl" | "2xl"; } export const Page = ({ @@ -72,7 +71,7 @@ export const Page = ({ {superHeader} {(title || icon || subtitle || actions) && (
@@ -89,7 +88,7 @@ export const Page = ({ ) : ( (title || icon || subtitle || actions) && (
diff --git a/frontend/src/components/sidebar.tsx b/frontend/src/components/sidebar.tsx index a8c71cd5d..beca8c2eb 100644 --- a/frontend/src/components/sidebar.tsx +++ b/frontend/src/components/sidebar.tsx @@ -17,7 +17,7 @@ import { homeViewAtom } from "@main"; export const Sidebar = () => { const [view, setView] = useAtom(homeViewAtom); return ( -
+

Overviews

{ return (
-
+
{/* Logo */} -
MONITOR
+
MONITOR
{/* Searchbar */} @@ -131,7 +131,7 @@ const MobileDropdown = () => { return ( - +