Skip to content

Commit

Permalink
fixup! Start implementing locations map
Browse files Browse the repository at this point in the history
fix map markers
  • Loading branch information
dbrgn committed May 14, 2024
1 parent 96f140a commit e2d36c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/routes/locations/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,14 @@
</div>
</article>

<p class="content">
<p class="mb-4">
You've been at {data.locations.length} location{data.locations.length === 1 ? '' : 's'} so far!
</p>
<div class="mb-5">
<a href="/locations/add/" class="button is-primary">Add location</a>
</div>
{#if data.locations.some((location) => location.coordinates !== undefined)}
<section class="map">
<section class="map mb-5">
<MultiMap
markers={data.locations
.map((location) =>
Expand All @@ -135,9 +138,6 @@
/>
</section>
{/if}
<p class="content">
<a href="/locations/add/" class="button is-primary">Add location</a>
</p>
<table class="table is-fullwidth is-striped is-hoverable">
<thead>
<tr>
Expand Down

0 comments on commit e2d36c8

Please sign in to comment.