Attempt to fix mobile styling

This commit is contained in:
ZXY101
2023-09-14 16:38:45 +02:00
parent a3c69b0219
commit 8e4c105f6c
4 changed files with 24 additions and 51 deletions

View File

@@ -12,25 +12,14 @@
</script>
<a href={`${$page.params.manga}/${volumeName}`} on:click={onClick}>
<div class="content">
<div class="flex flex-col gap-[5px] text-center">
{volumeName}
{#if files}
<img src={URL.createObjectURL(Object.values(files)[0])} alt="img" />
<img
src={URL.createObjectURL(Object.values(files)[0])}
alt="img"
class="object-contain w-[250px] h-[350px] bg-black border-gray-900 border"
/>
{/if}
</div>
</a>
<style>
img {
width: 250px;
height: 350px;
object-fit: contain;
}
.content {
display: flex;
flex-direction: column;
gap: 5px;
text-align: center;
}
</style>