improved opening images
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user