fix: hide scrollbar when the asset grid is empty (#12217)

This commit is contained in:
martin
2024-09-02 21:43:36 +02:00
committed by GitHub
parent f46abbb5b5
commit efdf1b49f4

View File

@@ -762,8 +762,8 @@
{#if showShortcuts} {#if showShortcuts}
<ShowShortcuts on:close={() => (showShortcuts = !showShortcuts)} /> <ShowShortcuts on:close={() => (showShortcuts = !showShortcuts)} />
{/if} {/if}
{#if assetStore.buckets.length > 0}
<Scrubber <Scrubber
invisible={showSkeleton} invisible={showSkeleton}
{assetStore} {assetStore}
height={safeViewport.height} height={safeViewport.height}
@@ -775,7 +775,8 @@
{scrubBucket} {scrubBucket}
{onScrub} {onScrub}
{stopScrub} {stopScrub}
/> />
{/if}
<!-- Right margin MUST be equal to the width of immich-scrubbable-scrollbar --> <!-- Right margin MUST be equal to the width of immich-scrubbable-scrollbar -->
<section <section