Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Mar 4, 2024
1 parent ebe7a14 commit c8ed35f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/lib/components/asset-viewer/photo-viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
let copyImageToClipboard: (source: string) => Promise<Blob>;
let canCopyImagesToClipboard: () => boolean;
const loadOriginal = $alwaysLoadOriginalFile ? isWebCompatibleImage(asset) : false;
$: if (imgElement) {
createZoomImageWheel(imgElement, {
maxZoom: 10,
Expand Down Expand Up @@ -125,7 +127,7 @@
transition:fade={{ duration: haveFadeTransition ? 150 : 0 }}
class="flex h-full select-none place-content-center place-items-center"
>
{#await loadAssetData({ loadOriginal: $alwaysLoadOriginalFile ? isWebCompatibleImage(asset) : false })}
{#await loadAssetData({ loadOriginal })}
<LoadingSpinner />
{:then}
<div bind:this={imgElement} class="h-full w-full">
Expand Down

0 comments on commit c8ed35f

Please sign in to comment.