Improve mobile gallery styling
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<div class="sm:block flex-col flex">
|
<div class="sm:block flex-col flex">
|
||||||
<Button outline color="red" class="float-right" on:click={onClear}>Clear catalog</Button>
|
<Button outline color="red" class="float-right" on:click={onClear}>Clear catalog</Button>
|
||||||
</div>
|
</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)}
|
{#each $catalog as { id, manga } (id)}
|
||||||
<CatalogItem {manga} />
|
<CatalogItem {manga} />
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href={volumeName} on:click={onClick}>
|
<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}
|
{mokuroData.title}
|
||||||
{#if files}
|
{#if files}
|
||||||
<img
|
<img
|
||||||
|
|||||||
@@ -12,13 +12,13 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href={`${$page.params.manga}/${volumeName}`} on:click={onClick}>
|
<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}
|
{volumeName}
|
||||||
{#if files}
|
{#if files}
|
||||||
<img
|
<img
|
||||||
src={URL.createObjectURL(Object.values(files)[0])}
|
src={URL.createObjectURL(Object.values(files)[0])}
|
||||||
alt="img"
|
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}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<div class="sm:block flex-col flex">
|
<div class="sm:block flex-col flex">
|
||||||
<Button outline color="red" class="float-right" on:click={onDelete}>Delete manga</Button>
|
<Button outline color="red" class="float-right" on:click={onDelete}>Delete manga</Button>
|
||||||
</div>
|
</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}
|
{#if manga}
|
||||||
{#each manga as volume}
|
{#each manga as volume}
|
||||||
<VolumeItem {volume} />
|
<VolumeItem {volume} />
|
||||||
|
|||||||
Reference in New Issue
Block a user