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
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8.4.38",
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
Expand Down
11 changes: 11 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ body {
color: var(--foreground);
transition: background-color 200ms ease, color 200ms ease;
}
/* Custom slim scrollbar for dashboard widgets */
.scrollbar-thin {
scrollbar-width: thin;
scrollbar-color: #4b5563 transparent;
}
.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 9999px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: #6b7280; }
.dark .scrollbar-thin::-webkit-scrollbar-thumb { background: #6b7280; }
.dark .scrollbar-thin::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
2 changes: 1 addition & 1 deletion src/components/BadgeSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function CopyableCodeBlock({ code }: { code: string }) {

return (
<div className="flex items-center justify-between rounded-lg bg-[var(--control)] p-3 border border-[var(--border)]">
<code className="flex-1 text-xs text-[var(--card-foreground)] overflow-auto">
<code className="flex-1 text-xs text-[var(--card-foreground)] overflow-auto scrollbar-thin">
{code}
</code>
<button
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContributionHeatmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default function ContributionHeatmap({
</div>
) : (
<>
<div className="overflow-x-auto pb-2">
<div className="overflow-x-auto pb-2 scrollbar-thin">
<div className="mx-auto flex flex-col gap-1" style={{ width: `${totalGridWidth}px` }}>

{/* MATHEMATICAL COORDINATE TIMELINE HEADER BANNER CONTAINER */}
Expand Down
2 changes: 1 addition & 1 deletion src/components/FriendComparison.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function FriendComparison() {

{friendData && myData && (
<div className="space-y-4">
<div className="overflow-x-auto pb-2">
<div className="overflow-x-auto pb-2 scrollbar-thin">
<div className="min-w-[400px]">
<div className="flex justify-between items-center text-sm font-medium text-[var(--muted-foreground)] px-2 mb-4">
<div className="w-1/3 text-left">You ({myData.username})</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/NotificationBell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function NotificationBell() {
)}
</div>

<ul className="max-h-72 overflow-y-auto divide-y divide-[var(--border)]">
<ul className="max-h-72 overflow-y-auto divide-y divide-[var(--border)] scrollbar-thin">
{notifications.length === 0 ? (
<li className="px-4 py-6 text-center text-sm text-[var(--muted-foreground)]">
No notifications yet
Expand Down
6 changes: 4 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const config: Config = {
theme: {
extend: {},
},
plugins: [],
plugins: [
require("tailwind-scrollbar")({ nocompatible: true }),
],
};

export default config;
export default config;
Loading