Skip to content

Commit

Permalink
💄 quick style fix for shiny found button
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyFangs committed Oct 27, 2024
1 parent 76a942b commit e5b583c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/lib/menu/tracker/view/ViewTrackers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@
function completeHunt(index: number, huntTracker: HuntTracker) {
return () => {
huntTracker.complete = true
deleteTracker(index, huntTracker)()
if (confirm('Are you sure you want to finish your shiny hunt?')) {
huntTracker.complete = true
deleteTracker(index, huntTracker)()
}
}
}
Expand Down Expand Up @@ -230,7 +232,11 @@

<TrackerCounter bind:huntTracker />

<button on:click={completeHunt(index, huntTracker)}>Shiny Found</button>
<div>
<button class="primary-button" on:click={completeHunt(index, huntTracker)}
>Shiny Found</button
>
</div>
</div>
{/each}
{:else}
Expand Down Expand Up @@ -348,4 +354,9 @@
font-weight: bold;
font-size: 2em;
}
.primary-button {
font-size: 1.5em;
font-weight: bold;
}
</style>

0 comments on commit e5b583c

Please sign in to comment.