mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 14:35:25 -04:00
feat(web): partially fix scrolling reset on search page
the scroll position is still changed, however it centers the selected item which is more usable than just the top
This commit is contained in:
parent
1eed0e14f5
commit
819b92500e
@ -66,7 +66,7 @@ async function navigateAssetRoute(route: AssetRoute) {
|
|||||||
const { assetId } = route;
|
const { assetId } = route;
|
||||||
const next = assetId ? currentUrlReplaceAssetId(assetId) : currentUrlWithoutAsset();
|
const next = assetId ? currentUrlReplaceAssetId(assetId) : currentUrlWithoutAsset();
|
||||||
if (next !== currentUrl()) {
|
if (next !== currentUrl()) {
|
||||||
await goto(next, { replaceState: false });
|
await goto(next, { replaceState: false, noScroll: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user