feat: sort by location

This commit is contained in:
2025-06-12 23:50:24 +01:00
parent ee190d90db
commit ce6c391d81
4 changed files with 115 additions and 7 deletions

View File

@@ -137,7 +137,7 @@
<div class="compulsoryContainer"><CompulsoryTags {space} /></div>
{#if space.tags.length > 0}
<div class="tagContainer">
{#each space.tags as tag (tag)}
{#each space.tags as tag, idx (tag + idx)}
<span class="tag">
{tag}
</span>
@@ -172,7 +172,7 @@
{#if place.name}
{place.name} <br />
{/if}
{#each place.formatted_address?.split(",") || [] as line (line)}
{#each place.formatted_address?.split(",") || [] as line, idx (line + idx)}
{line.trim()} <br />
{/each}
</p>

View File

@@ -370,7 +370,7 @@
</div>
<label for="openingTimes">Opening times (Optional):</label>
<div class="allDaysTiming">
{#each studySpaceData.opening_times as opening_time, index (index)}
{#each studySpaceData.opening_times as opening_time, index (opening_time)}
<OpeningTimesDay
{index}
bind:openingValue={opening_time.opens_at}