From fdbd92d6c22825edbc58bed7feddd5707db56605 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 12:07:11 +0000 Subject: [PATCH] =?UTF-8?q?Sync=20shared=20components=20=E2=80=94=20sideba?= =?UTF-8?q?r=20scrollbar,=20Layout,=20AuthGate=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/Layout.tsx | 2 +- frontend/src/index.css | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 67f23cb..0412431 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -28,7 +28,7 @@ export function Layout({ user, children }: Props) {

{user.name}

-
+
{user.is_admin && }
diff --git a/frontend/src/index.css b/frontend/src/index.css index 45dd0ff..f7fd1d3 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -346,3 +346,18 @@ input, textarea, select { font-family: inherit; } cursor: pointer; padding: 2px; } + +/* Sidebar scrollbar */ +.nav-scroll::-webkit-scrollbar, +.sidebar::-webkit-scrollbar, +.sidebar-nav::-webkit-scrollbar { width: 4px; } +.nav-scroll::-webkit-scrollbar-track, +.sidebar::-webkit-scrollbar-track, +.sidebar-nav::-webkit-scrollbar-track { background: transparent; } +.nav-scroll::-webkit-scrollbar-thumb, +.sidebar::-webkit-scrollbar-thumb, +.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 2px; } +.nav-scroll::-webkit-scrollbar-thumb:hover, +.sidebar::-webkit-scrollbar-thumb:hover, +.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.65); } +.nav-scroll, .sidebar, .sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.35) transparent; }