File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,12 @@ section {
331
331
background : var (--background-secondary );
332
332
}
333
333
334
+ summary .category_name {
335
+ position : sticky;
336
+ top : 102px ;
337
+ z-index : 5 ;
338
+ }
339
+
334
340
.table .category_container .category_name ::after {
335
341
content : " (" attr (data-count) ")" ;
336
342
}
Original file line number Diff line number Diff line change @@ -125,9 +125,10 @@ document.addEventListener("DOMContentLoaded", function () {
125
125
function adjustScroll ( hash ) {
126
126
let target = document . querySelector ( hash )
127
127
if ( target ) {
128
- let offset = document . querySelector ( "#search_text" ) . offsetHeight
128
+ let offsetSearch = document . querySelector ( "#search_text" ) . offsetHeight
129
+ let offsetCategory = document . querySelector ( "summary.category_name" ) . offsetHeight
129
130
window . scrollTo ( {
130
- top : target . offsetTop - offset - 5 ,
131
+ top : target . offsetTop - offsetSearch - offsetCategory - 1 ,
131
132
behavior : "smooth"
132
133
} )
133
134
}
You can’t perform that action at this time.
0 commit comments