scroll to top on page change

This commit is contained in:
Aran-Fey
2024-07-09 14:51:10 +02:00
parent 21987f306a
commit f5685fc414

View File

@@ -854,7 +854,7 @@ window.location.href = {json.dumps(str(target_url))};
// Scroll to the top. This has to happen before we change the URL, because if
// the URL has a #fragment then we will scroll to the corresponding ScrollTarget
let element = {
'document.querySelector(".rio-user-root-container-inner")'
'document.querySelector(".rio-user-root-container-outer")'
if self._app_server.debug_mode else
'document.documentElement'
};