Fix issues determined from testing series

This commit is contained in:
Sean Morley
2024-11-07 19:48:44 -05:00
parent c7207ccf52
commit b32c780266
5 changed files with 28 additions and 17 deletions

View File

@@ -29,12 +29,6 @@
let count = data.props.count || 0;
$: {
if (count != adventures.length) {
count = adventures.length;
}
}
let totalPages = Math.ceil(count / resultsPerPage);
let currentPage: number = 1;

View File

@@ -120,9 +120,9 @@
{#if adventure.latitude && adventure.longitude}
<Marker
lngLat={[adventure.longitude, adventure.latitude]}
class="grid h-8 w-8 place-items-center rounded-full border border-gray-200 bg-{adventure.is_visited
? 'red'
: 'blue'}-300 text-black shadow-2xl focus:outline-2 focus:outline-black"
class="grid h-8 w-8 place-items-center rounded-full border border-gray-200 {adventure.is_visited
? 'bg-red-300'
: 'bg-blue-300'} text-black shadow-2xl focus:outline-2 focus:outline-black"
on:click={togglePopup}
>
<span class="text-xl">