mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-29 09:09:15 +03:00
Fixed FilePreview layout (#5998)
Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
parent
fad6383426
commit
29f3198b69
@ -86,7 +86,7 @@
|
|||||||
>
|
>
|
||||||
{#await srcRef then src}
|
{#await srcRef then src}
|
||||||
{#if src === ''}
|
{#if src === ''}
|
||||||
<div class="centered">
|
<div class="flex-col items-center">
|
||||||
<Label label={presentation.string.FailedToPreview} />
|
<Label label={presentation.string.FailedToPreview} />
|
||||||
</div>
|
</div>
|
||||||
{:else if previewType !== undefined}
|
{:else if previewType !== undefined}
|
||||||
@ -95,7 +95,7 @@
|
|||||||
props={{ value: file, name, contentType: file.contentType, metadata, ...props, fit }}
|
props={{ value: file, name, contentType: file.contentType, metadata, ...props, fit }}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="centered flex-col flex-gap-3">
|
<div class="flex-col items-center flex-gap-3">
|
||||||
<Label label={presentation.string.ContentTypeNotSupported} />
|
<Label label={presentation.string.ContentTypeNotSupported} />
|
||||||
<a class="no-line" href={src} download={name} bind:this={download}>
|
<a class="no-line" href={src} download={name} bind:this={download}>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user