Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/dashboard/dashboard-shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function ActivityLane({

<div
aria-label={ariaLabel}
className="overflow-x-auto overscroll-x-contain pb-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
className="activity-lane-scrollbar overflow-x-auto overscroll-x-contain pb-2 md:pb-3"
>
<div className="flex snap-x snap-mandatory gap-4 pr-4 sm:pr-6">
{children}
Expand Down
44 changes: 44 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,50 @@
background-color: color-mix(in oklch, var(--primary) 15%, transparent);
}

.activity-lane-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}

.activity-lane-scrollbar::-webkit-scrollbar {
display: none;
}

@media (min-width: 768px) {
.activity-lane-scrollbar {
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}

.activity-lane-scrollbar::-webkit-scrollbar {
display: block;
height: 0.6rem;
}

.activity-lane-scrollbar::-webkit-scrollbar-track {
border-radius: 9999px;
background-color: color-mix(in oklch, var(--input) 72%, transparent);
}

.activity-lane-scrollbar::-webkit-scrollbar-thumb {
border: 1px solid var(--card);
border-radius: 9999px;
background-color: color-mix(
in oklch,
var(--border) 80%,
var(--primary) 20%
);
}

.activity-lane-scrollbar:hover::-webkit-scrollbar-thumb {
background-color: color-mix(
in oklch,
var(--border) 64%,
var(--primary) 36%
);
}
}

@keyframes nav-underline {
0% {
transform: scaleX(0.2);
Expand Down