mirror of
https://github.com/immich-app/immich.git
synced 2025-12-29 09:14:59 +03:00
* Squashed * Change strategy - now pre-measure buckets offscreen, so don't need to worry about sub-bucket scroll preservation * Reduce jank on scroll, delay DOM updates until after scroll * css opt, log measure time * Trickle out queue while scrolling, flush when stopped * yay * Cleanup cleanup... * everybody... * everywhere... * Clean up cleanup! * Everybody do their share * CLEANUP! * package-lock ? * dynamic measure, todo * Fix web test * type lint * fix e2e * e2e test * Better scrollbar * Tuning, and more tunables * Tunable tweaks, more tunables * Scrollbar dots and viewport events * lint * Tweaked tunnables, use requestIdleCallback for garbage tasks, bug fixes * New tunables, and don't update url by default * Bug fixes * Bug fix, with debug * Fix flickr, fix graybox bug, reduced debug * Refactor/cleanup * Fix * naming * Final cleanup * review comment * Forgot to update this after naming change * scrubber works, with debug * cleanup * Rename scrollbar to scrubber * rename to * left over rename and change to previous album bar * bugfix addassets, comments * missing destroy(), cleanup --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
31 lines
791 B
Svelte
31 lines
791 B
Svelte
<script lang="ts">
|
|
import UploadCover from '$lib/components/shared-components/drag-and-drop-upload-overlay.svelte';
|
|
import { page } from '$app/stores';
|
|
|
|
import { assetViewingStore } from '$lib/stores/asset-viewing.store';
|
|
let { isViewing: showAssetViewer, setAsset, gridScrollTarget } = assetViewingStore;
|
|
|
|
// $page.data.asset is loaded by route specific +page.ts loaders if that
|
|
// route contains the assetId path.
|
|
$: {
|
|
if ($page.data.asset) {
|
|
setAsset($page.data.asset);
|
|
} else {
|
|
$showAssetViewer = false;
|
|
}
|
|
const asset = $page.url.searchParams.get('at');
|
|
$gridScrollTarget = { at: asset };
|
|
}
|
|
</script>
|
|
|
|
<div class:display-none={$showAssetViewer}>
|
|
<slot />
|
|
</div>
|
|
<UploadCover />
|
|
|
|
<style>
|
|
.display-none {
|
|
display: none;
|
|
}
|
|
</style>
|