File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -398,12 +398,6 @@ summary.category_name {
398
398
font-size : var (--font-size-medium );
399
399
}
400
400
401
- .row .game {
402
- position : sticky;
403
- top : 154px ;
404
- z-index : 5 ;
405
- }
406
-
407
401
.table .jeu {
408
402
display : flex;
409
403
flex-wrap : wrap;
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