fix: gallery viewer sliding window offload assets (#17016)
* fix: gallery viewer sliding window offload assets * fix: update bottom sliding window * do not use negative * Calculate offset before gallery --------- Co-authored-by: Min Idzelis <min123@gmail.com>
This commit is contained in:
@@ -154,7 +154,13 @@
|
||||
<!-- Assets -->
|
||||
{#if data.pathAssets && data.pathAssets.length > 0}
|
||||
<div bind:clientHeight={viewport.height} bind:clientWidth={viewport.width} class="mt-2">
|
||||
<GalleryViewer assets={data.pathAssets} {assetInteraction} {viewport} showAssetName={true} />
|
||||
<GalleryViewer
|
||||
assets={data.pathAssets}
|
||||
{assetInteraction}
|
||||
{viewport}
|
||||
showAssetName={true}
|
||||
pageHeaderOffset={54}
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
|
||||
@@ -368,6 +368,7 @@
|
||||
onIntersected={loadNextPage}
|
||||
showArchiveIcon={true}
|
||||
{viewport}
|
||||
pageHeaderOffset={54}
|
||||
/>
|
||||
{:else if !isLoading}
|
||||
<div class="flex min-h-[calc(66vh_-_11rem)] w-full place-content-center items-center dark:text-white">
|
||||
|
||||
Reference in New Issue
Block a user