[ui] load full image in detail mode
This commit is contained in:
parent
2f40ea4adb
commit
22a97c65d3
2 changed files with 3 additions and 2 deletions
|
@ -73,7 +73,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if image}
|
{#if image}
|
||||||
<div class="image">
|
<div class="image">
|
||||||
<ImageViewer {address} {editable} />
|
<ImageViewer {address} {editable} {detail} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if pdf}
|
{#if pdf}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
export let address: string;
|
export let address: string;
|
||||||
export let editable: boolean;
|
export let editable: boolean;
|
||||||
|
export let detail: boolean;
|
||||||
|
|
||||||
const { entity } = useEntity(address);
|
const { entity } = useEntity(address);
|
||||||
|
|
||||||
|
@ -174,7 +175,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
<img
|
<img
|
||||||
class="preview-image"
|
class="preview-image"
|
||||||
src="api/thumb/{address}"
|
src="api/{detail ? 'raw' : 'thumb'}/{address}"
|
||||||
alt={address}
|
alt={address}
|
||||||
on:load={loaded}
|
on:load={loaded}
|
||||||
bind:this={imageEl}
|
bind:this={imageEl}
|
||||||
|
|
Loading…
Reference in a new issue