Improve mobile gallery styling

This commit is contained in:
ZXY101
2023-09-25 14:48:33 +02:00
parent f06823e4e3
commit 53f5a48d3e
4 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@
<div class="sm:block flex-col flex">
<Button outline color="red" class="float-right" on:click={onClear}>Clear catalog</Button>
</div>
<div class="flex flex-row gap-5 flex-wrap">
<div class="flex sm:flex-row flex-col gap-5 flex-wrap justify-center sm:justify-start">
{#each $catalog as { id, manga } (id)}
<CatalogItem {manga} />
{/each}

View File

@@ -10,7 +10,7 @@
</script>
<a href={volumeName} on:click={onClick}>
<div class="flex flex-col gap-[5px] text-center">
<div class="flex flex-col gap-[5px] text-center items-center">
{mokuroData.title}
{#if files}
<img

View File

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

View File

@@ -38,7 +38,7 @@
<div class="sm:block flex-col flex">
<Button outline color="red" class="float-right" on:click={onDelete}>Delete manga</Button>
</div>
<div class="flex flex-row gap-5 flex-wrap">
<div class="flex sm:flex-row flex-col justify-center sm:justify-start gap-5 flex-wrap">
{#if manga}
{#each manga as volume}
<VolumeItem {volume} />