👀 Rework how House index is displayed

Use grids to place the index instead of position absolute
Add a condition if the index starts with 1 as it has a quite smaller width
This commit is contained in:
2022-06-27 13:28:58 +02:00
parent 465e673715
commit c9053f9757
3 changed files with 51 additions and 35 deletions

View File

@@ -267,7 +267,7 @@
</section>
{#if photos.length}
<section class="location-page__houses grid" bind:this={photosListEl}>
<section class="location-page__houses" bind:this={photosListEl}>
{#each photos as { title, image: { id, title: alt, width, height }, slug, city, date_taken }, index}
<House
{title}