mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
fix(server, web): prevent reload when liking an asset (#7589)
pr feedback
This commit is contained in:
parent
87c3d886ff
commit
935ddf3fbd
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@
|
|||
let copyImageToClipboard: (source: string) => Promise<Blob>;
|
||||
let canCopyImagesToClipboard: () => boolean;
|
||||
|
||||
const loadOriginalByDefault = $alwaysLoadOriginalFile && isWebCompatibleImage(asset);
|
||||
|
||||
$: if (imgElement) {
|
||||
createZoomImageWheel(imgElement, {
|
||||
maxZoom: 10,
|
||||
|
@ -126,7 +128,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: loadOriginalByDefault })}
|
||||
<LoadingSpinner />
|
||||
{:then}
|
||||
<div bind:this={imgElement} class="h-full w-full">
|
||||
|
|
Loading…
Reference in a new issue