TouhouFest / touhoufest-webapp

custom tuning of cjnwebapp for touhoufest
https://schedule.touhoufest.org
GNU Affero General Public License v3.0
1 stars 0 forks source link

patch scroll bug with fragments #12

Closed kir12 closed 3 months ago

kir12 commented 3 months ago

currently on chrome specifically when a user enters and exits the menu after scrolling, the webpage scrolls up a bit. The cause has been tied to the following snippet added as part of the fragment changes, namely

html {
  scroll-padding-top: 96px;
}

which was added as a means of circumventing scrolling beyond the navbar. Find a way to teleport to the proper point without scroll-padding-top that works on both chrome and firefox

kir12 commented 3 months ago

https://stackoverflow.com/questions/27126346/fragment-in-html-content-goes-behind-the-navbar-how-to-prevent-this