From 07ba104edd7cbe71480f4cad41e3f5baa2353a46 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sun, 26 Oct 2025 20:33:47 +0100 Subject: [PATCH] Small sidebar fix --- src/app/globals.css | 12 ++++++++++++ src/components/app/SidebarServers.tsx | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index e26f406..c4d43b4 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -173,3 +173,15 @@ ::-webkit-scrollbar-thumb:hover { background-color: #4b5563; } + +@layer utilities { + /* Hide scrollbar for Chrome, Safari and Opera */ + .no-scrollbar::-webkit-scrollbar { + display: none; + } + /* Hide scrollbar for IE, Edge and Firefox */ + .no-scrollbar { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + } +} \ No newline at end of file diff --git a/src/components/app/SidebarServers.tsx b/src/components/app/SidebarServers.tsx index e5a339e..fb69aa1 100644 --- a/src/components/app/SidebarServers.tsx +++ b/src/components/app/SidebarServers.tsx @@ -41,7 +41,7 @@ export default function SidebarServers({ app }: { app: App }) { }; return ( -
+
{Object.values(app.servers).map( - (srv) => + (srv, i) => srv && ( - + )