[ui] load full image in detail mode

feat/vaults
Tomáš Mládek 2022-02-13 16:00:21 +01:00
parent 2f40ea4adb
commit 22a97c65d3
No known key found for this signature in database
GPG Key ID: 65E225C8B3E2ED8A
2 changed files with 3 additions and 2 deletions

View File

@ -73,7 +73,7 @@
{/if}
{#if image}
<div class="image">
<ImageViewer {address} {editable} />
<ImageViewer {address} {editable} {detail} />
</div>
{/if}
{#if pdf}

View File

@ -6,6 +6,7 @@
export let address: string;
export let editable: boolean;
export let detail: boolean;
const { entity } = useEntity(address);
@ -174,7 +175,7 @@
{/if}
<img
class="preview-image"
src="api/thumb/{address}"
src="api/{detail ? 'raw' : 'thumb'}/{address}"
alt={address}
on:load={loaded}
bind:this={imageEl}