change conversion page grid

revert to previous behaviour (always on right of first row) and always show uploader first on mobile
This commit is contained in:
JovannMC 2025-01-13 17:08:54 +03:00
parent 4d45f3423e
commit 5cc14b2640
No known key found for this signature in database
1 changed files with 9 additions and 1 deletions

View File

@ -119,10 +119,18 @@
<div
class="w-full max-w-[794px] grid grid-cols-1 md:grid-cols-2 auto-rows-[240px] gap-4 md:p-0"
>
<Uploader class="w-full h-full" />
{#each files.files as file, i (file.id)}
{#if files.files.length >= 2 && i === 1}
<Uploader class="w-full h-full col-start-1 row-start-1 md:col-start-2" />
{/if}
{@render fileItem(file, i)}
{#if files.files.length < 2}
<Uploader class="w-full h-full" />
{/if}
{/each}
{#if files.files.length === 0}
<Uploader class="w-full h-full" />
{/if}
</div>
</div>