Skip to content

Commit b323783

Browse files
authored
Merge pull request #533 from riyanshigupta890-cloud/feature/activity-scrollbar-518
Feature/activity scrollbar 518
2 parents f4903ee + 11c500b commit b323783

4 files changed

Lines changed: 42 additions & 5 deletions

File tree

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"eslint-plugin-react-refresh": "^0.5.2",
4141
"globals": "^17.6.0",
4242
"postcss": "^8.5.15",
43+
"tailwind-scrollbar": "^3.1.0",
4344
"tailwindcss": "^3.4.19",
4445
"typescript": "^6.0.3",
4546
"vite": "^8.0.16",

src/components/dashboard/ActivityFeed.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export const ActivityFeed = () => {
2929
</div>
3030

3131
{/* Timeline items */}
32-
<div className="flex-1 mt-6 relative pl-6 space-y-6 before:absolute before:left-[11px] before:top-2 before:bottom-2 before:w-[1px] before:bg-slate-200 dark:before:bg-slate-800 overflow-y-auto max-h-[350px] scrollbar-none">
33-
<motion.div
32+
<div className="flex-1 mt-6 relative pl-6 pr-2 space-y-6 before:absolute before:left-[11px] before:top-2 before:bottom-2 before:w-[1px] before:bg-slate-200 dark:before:bg-slate-800 overflow-y-auto max-h-[350px] scrollbar-thin scrollbar-thumb-slate-300 dark:scrollbar-thumb-slate-700 scrollbar-track-transparent"> <motion.div
3433
variants={staggerContainer(0.08, 0.05)}
3534
initial="hidden"
3635
animate="visible"

tailwind.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import tailwindScrollbar from 'tailwind-scrollbar';
2+
13
/** @type {import('tailwindcss').Config} */
24
export default {
35
content: [
@@ -29,8 +31,10 @@ export default {
2931
'66%': { transform: 'translate(-20px, 20px) scale(0.9)' },
3032
'100%': { transform: 'translate(0px, 0px) scale(1)' },
3133
}
32-
}
33-
},
34+
},
35+
}
3436
},
35-
plugins: [],
37+
plugins: [
38+
tailwindScrollbar,
39+
],
3640
}

0 commit comments

Comments
 (0)