Skip to content

Commit f46f4e8

Browse files
scrollbar updated
1 parent f08265f commit f46f4e8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/App.jsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,20 @@ export default function App() {
982982
<div className="mt-6">
983983
<h4 className="text-md opacity-80">Session History</h4>
984984
<div className="text-xs opacity-70">Click any session to see details • {history.length} total sessions</div>
985-
<div className={` mt-2 divide-y divide-gray-200/30 ${!isMobile ? 'h-48 overflow-y-auto ' : 'overflow-y-auto'}`} style={{ scrollbarWidth: 'none', scrollbarColor: 'transparent' }}>
985+
<div className={` mt-2 divide-y divide-gray-200/30 ${!isMobile ? 'h-48 overflow-y-auto ' : 'overflow-y-auto'}`} style={{
986+
987+
WebkitScrollbar: '6px', /* width of the scrollbar */
988+
WebkitScrollbarTrack: {
989+
background: 'transparent', // Makes the track transparent
990+
},
991+
WebkitScrollbarThumb: {
992+
backgroundColor: 'lightgray', // Color of the draggable part
993+
borderRadius: '2px',
994+
},
995+
WebkitScrollbarButton: {
996+
display: 'none',
997+
},
998+
}}>
986999
{history.length === 0 ? (
9871000
<div className="text-sm opacity-60 p-3">No sessions completed yet.</div>
9881001
) : (

src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@
9090
.celebration-pulse {
9191
animation: celebrationPulse 2s ease-in-out infinite;
9292
}
93+

0 commit comments

Comments
 (0)