File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ class SideMenu extends React.Component {
60
60
activeEl && activeEl . parentNode . parentNode . parentNode . parentNode ;
61
61
activeEl && activeGroup . classList . add ( "active-group" ) ;
62
62
}
63
+ const activeGroup = document . getElementsByClassName ( "active-group" ) [ 0 ] ;
64
+
65
+ activeGroup &&
66
+ activeGroup . scrollIntoView ( {
67
+ block : "start"
68
+ } ) ;
63
69
} ) ;
64
70
65
71
hash &&
Original file line number Diff line number Diff line change 11
11
}
12
12
13
13
.api-navigation {
14
- /* position: sticky; */
15
14
z-index : 2 ;
16
15
top : 2rem ;
17
- overflow : hidden;
18
16
}
19
17
20
18
.api-content-wrapper {
32
30
visibility : hidden;
33
31
}
34
32
35
- .list-group {
33
+ .list-group ,
34
+ .list-group ul {
36
35
max-height : 0 ;
37
36
visibility : hidden;
38
37
line-height : 1 ;
41
40
.active-group .list-group {
42
41
max-height : 100% ;
43
42
visibility : visible;
44
- @apply mt-2 mb-4 ml-4;
43
+ border-left : 1px solid # ddd ;
44
+ @apply mt-2 mb-4 ml-2 pl-2;
45
+ }
46
+
47
+ .active-group .list-group ul {
48
+ max-height : 100% ;
49
+ visibility : visible;
45
50
}
46
51
47
52
.active-group .list-group li {
You can’t perform that action at this time.
0 commit comments