File tree 3 files changed +22
-4
lines changed
3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change
1
+ .leftsidebar-scrollbar ::-webkit-scrollbar {
2
+ width : 4px ;
3
+ }
4
+
5
+ .leftsidebar-scrollbar ::-webkit-scrollbar-track {
6
+ background : # 18181b ;
7
+ border-radius : 10px ;
8
+ }
9
+
10
+ .leftsidebar-scrollbar ::-webkit-scrollbar-thumb {
11
+ background : # 888 ;
12
+ border-radius : 10px ;
13
+ }
14
+
15
+ .leftsidebar-scrollbar ::-webkit-scrollbar-thumb : hover {
16
+ background : # 555 ;
17
+ }
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
import { Button , Card , CardBody , CardHeader } from "@nextui-org/react" ;
3
3
import React from "react" ;
4
+ import "./LeftSidebar.css" ;
4
5
5
6
export const LeftSidebar = ( { onCategorySelect, selectedCategory } ) => {
6
7
// category lists
@@ -100,20 +101,20 @@ export const LeftSidebar = ({ onCategorySelect, selectedCategory }) => {
100
101
] ;
101
102
return (
102
103
< div >
103
- < Card >
104
+ < Card className = "max-h-[80vh]" >
104
105
< CardHeader >
105
106
< h2 className = "text-xl flex justify-center w-full font-bold" >
106
107
Blog Categories
107
108
</ h2 >
108
109
</ CardHeader >
109
-
110
110
< CardBody >
111
- < div className = "grid gird-col-1 gap-3 max-h-[400px] overflow-y-auto lg:max-h-none lg:overflow-y-hidden " >
111
+ < div className = "grid gird-col-1 gap-3 max-h-[400px] overflow-y-auto lg:max-h-none leftsidebar-scrollbar " >
112
112
{ catItems ?. map ( ( item ) => (
113
113
< Button
114
114
onClick = { ( ) => onCategorySelect ( item . key ) }
115
115
variant = { selectedCategory === item . key ? "solid" : "light" }
116
116
key = { item . key }
117
+ className = "mr-2"
117
118
>
118
119
{ item . label }
119
120
</ Button >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ module.exports = {
43
43
background : "#121212" , // Main background color, deep dark
44
44
primary : "#A3BE8C" , // Primary brand color, muted green for accents
45
45
secondary : "#4C566A" , // Secondary elements, cool gray
46
- accent : "#81A1C1" , // Accent color, a calm blue for highlights
46
+ accent : "#81A1C1" , // Accent color, a calm blue for highlights
47
47
} ,
48
48
} ,
49
49
} ,
You can’t perform that action at this time.
0 commit comments