File tree 2 files changed +10
-5
lines changed
docs/src/components/common/Layout
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,11 @@ const Sidebar = ({ pages }) => {
28
28
return (
29
29
< >
30
30
< div className = "sidebar website-sidebar" key = "SW" >
31
- < Menu routes = { routes } />
32
- < script async type = "text/javascript" src = "//cdn.carbonads.com/carbon.js?serve=CK7D52QE&placement=react-popupelazizicom" id="_carbonads_js" />
31
+ < div className = "sticky-sidebar" >
32
+ < Menu routes = { routes } />
33
+ < script async type = "text/javascript" src = "//cdn.carbonads.com/carbon.js?serve=CK7D52QE&placement=react-popupelazizicom" id="_carbonads_js" />
34
+ </div>
35
+
33
36
</div>
34
37
<div className=" sidebar mobile-sidebar " key = "SM" >
35
38
< Popup
Original file line number Diff line number Diff line change 2
2
width : 250px !important ;
3
3
padding : 20px 5px ;
4
4
}
5
-
6
- .menu {
7
- background : transparent;
5
+ .sticky-sidebar {
8
6
position : sticky;
9
7
top : 20px ;
8
+ width : 100% ;
9
+ }
10
+ .menu {
11
+ background : transparent;
10
12
display : block;
11
13
padding : 0 ;
12
14
margin-left : 0px ;
You can’t perform that action at this time.
0 commit comments