Skip to content

Commit

Permalink
revert: hide scroll bar
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Sep 5, 2024
1 parent b439189 commit 7a72d02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,16 @@
--ring: 225 89% 79%;
}
}

@layer utilities {
/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scroll::-webkit-scrollbar {
@apply hidden;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scroll {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}
2 changes: 1 addition & 1 deletion src/views/dashboard/RecentContacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const RecentContacts: FC<{ id: string }> = ({ id }) => {
</Link>
</div>

<div className="flex w-full space-x-4 overflow-x-auto pb-1">
<div className="hide-scroll flex w-full space-x-4 overflow-x-auto">
{loading ? (
Array.from({ length: 3 }).map((_, i) => (
<div key={i} className="space-y-2">
Expand Down

0 comments on commit 7a72d02

Please sign in to comment.