"vscode:/vscode.git/clone" did not exist on "8a251fece7abf800dc01b6143530c876d3c90f63"
Commit 7467b7fd authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

feat: web doc url link

parent 07919a87
......@@ -145,6 +145,7 @@
name: url,
collection_name: '',
upload_status: false,
url: url,
error: ''
};
......
......@@ -82,8 +82,14 @@
{#if file.type === 'image'}
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
{:else if file.type === 'doc'}
<div
class="h-16 w-[15rem] flex items-center space-x-3 px-2.5 dark:bg-gray-600 rounded-xl border border-gray-200 dark:border-none"
<button
class="h-16 w-[15rem] flex items-center space-x-3 px-2.5 dark:bg-gray-600 rounded-xl border border-gray-200 dark:border-none text-left"
type="button"
on:click={() => {
if (file?.url) {
window.open(file?.url, '_blank').focus();
}
}}
>
<div class="p-2.5 bg-red-400 text-white rounded-lg">
<svg
......@@ -110,7 +116,7 @@
<div class=" text-gray-500 text-sm">Document</div>
</div>
</div>
</button>
{/if}
</div>
{/each}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment