[ui] load full image in detail mode
parent
2f40ea4adb
commit
22a97c65d3
|
@ -73,7 +73,7 @@
|
|||
{/if}
|
||||
{#if image}
|
||||
<div class="image">
|
||||
<ImageViewer {address} {editable} />
|
||||
<ImageViewer {address} {editable} {detail} />
|
||||
</div>
|
||||
{/if}
|
||||
{#if pdf}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue