improved opening images

This commit is contained in:
2022-05-14 23:06:16 +02:00
parent 1ee9916970
commit f31f1bbf02
3 changed files with 14 additions and 9 deletions

View File

@@ -37,7 +37,7 @@
{#if !notFound}
<div class="dl">
<a href="/s/{slug}">Download ({sizeToReadable(fileSize)})</a>
<a download href="/s/{slug}">Download ({sizeToReadable(fileSize)})</a>
</div>
{/if}
<main>

View File

@@ -2,9 +2,11 @@
export let contentType: string;
export let filename: string;
export let slug: string;
let ext = filename.split('.').pop();
</script>
<img src="/s/{slug}" alt="shared" />
<img src="/s/{slug}.{ext}" alt="shared" />
<style>
img {