fix some css stuff

This commit is contained in:
cirroskais 2024-07-06 03:07:25 -04:00
parent 59d4eee831
commit b99b682a54
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

View file

@ -37,12 +37,12 @@
Uploaded by <span class="font-bold">{data.uploader.username}</span>. Uploaded by <span class="font-bold">{data.uploader.username}</span>.
</p> </p>
</div> </div>
<div class="p-2.5 rounded-lg shadow-lg bg-crust h-[50vh]"> <div class="p-2.5 mx-auto rounded-lg shadow-lg w-fit bg-crust">
{#if data.file.type.includes('video')} {#if data.file.type.includes('video')}
<!-- svelte-ignore a11y-media-has-caption --> <!-- svelte-ignore a11y-media-has-caption -->
<video class="h-full" src="/download/{data.file.id}{ext}" controls></video> <video class="h-[36rem]" src="/download/{data.file.id}{ext}" controls></video>
{:else if data.file.type.includes('image')} {:else if data.file.type.includes('image')}
<img class="h-full" src="/download/{data.file.id}{ext}" alt={data.file.id} /> <img class="h-[36rem]" src="/download/{data.file.id}{ext}" alt={data.file.id} />
{/if} {/if}
</div> </div>
<Link style="button" href="/download/{data.file.id}{ext}"> <Link style="button" href="/download/{data.file.id}{ext}">