Skip to content

Commit 37b90cd

Browse files
committed
use gray radix variant for scrollbar color
1 parent b0a5f4e commit 37b90cd

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

apps/web/app/(org)/dashboard/_components/Navbar/Top.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ const Top = () => {
6161
"/dashboard/spaces/browse": "Browse Spaces",
6262
};
6363

64-
const title = activeSpace ? activeSpace.name : pathname.includes("/dashboard/folder") ? "Caps" : titles[pathname] || "";
64+
const title = activeSpace
65+
? activeSpace.name
66+
: pathname.includes("/dashboard/folder")
67+
? "Caps"
68+
: titles[pathname] || "";
6569

6670
const notificationsRef: MutableRefObject<HTMLDivElement> = useClickAway(
6771
(e) => {

apps/web/app/(org)/dashboard/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default async function DashboardLayout({
8080
userPreferences={userPreferences}
8181
>
8282
<div className="dashboard-grid">
83-
<DesktopNav />
83+
<DesktopNav />
8484
<div className="flex h-full [grid-area:main] focus:outline-none">
8585
<MobileNav />
8686
<DashboardInner>{children}</DashboardInner>

apps/web/app/globals.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ html {
7979
}
8080

8181
::-webkit-scrollbar-thumb {
82-
background: rgb(178, 178, 178);
83-
border-radius: 10px;
84-
}
85-
86-
/* Handle */
87-
.dark ::-webkit-scrollbar-thumb {
88-
background: rgb(61, 61, 61);
82+
background: var(--gray-7);
8983
border-radius: 10px;
9084
}
9185

0 commit comments

Comments
 (0)