fix: correct dashboard displaying

This commit is contained in:
divocat
2025-10-07 23:33:57 +03:00
parent a45ab62885
commit 9a46d731c9
7 changed files with 117 additions and 41 deletions

View File

@@ -0,0 +1,9 @@
export function preserveScrollForPage(renderFn: () => void) {
const scrollY = window.scrollY;
renderFn();
requestAnimationFrame(() => {
window.scrollTo({ top: scrollY });
});
}