From 35ddf0d5e42105e634deaf9dfe445126fe0222f1 Mon Sep 17 00:00:00 2001 From: Dorian Grasset Date: Thu, 14 Nov 2024 22:56:45 +0100 Subject: [PATCH] fix(GIST-102): update sidebar responsive --- src/app/(gistLayout)/layout-ui.tsx | 2 +- src/app/globals.css | 10 ++++++++++ src/components/ui/org-list.tsx | 2 +- src/components/ui/profile-dropdown.tsx | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/app/(gistLayout)/layout-ui.tsx b/src/app/(gistLayout)/layout-ui.tsx index 37d1fb2..bba744e 100644 --- a/src/app/(gistLayout)/layout-ui.tsx +++ b/src/app/(gistLayout)/layout-ui.tsx @@ -108,7 +108,7 @@ function AppSidebar({ }: AppSidebarProps) { return ( -
+
diff --git a/src/app/globals.css b/src/app/globals.css index 604be02..45b8f62 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -138,4 +138,14 @@ color: #2d1eff; background: #f1f5f9; } + + /* 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 */ + } } diff --git a/src/components/ui/org-list.tsx b/src/components/ui/org-list.tsx index 72ac4b3..ab7e7ce 100644 --- a/src/components/ui/org-list.tsx +++ b/src/components/ui/org-list.tsx @@ -13,7 +13,7 @@ interface OrgListProps { export function OrgList({ orgs, onGistOrg, onDeleteOrg, onDeleteGist, onUpdateOrg }: OrgListProps) { return ( - + {orgs.map((org) => ( diff --git a/src/components/ui/profile-dropdown.tsx b/src/components/ui/profile-dropdown.tsx index 5834733..877d247 100644 --- a/src/components/ui/profile-dropdown.tsx +++ b/src/components/ui/profile-dropdown.tsx @@ -21,7 +21,7 @@ export function ProfileDropdown({ username, onLogout }: ProfileDropdownProps) {