From f5c580b828f5ca34f2ae2c9fd24259bc9415576e Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Mon, 15 Jul 2024 19:18:37 +0100 Subject: [PATCH] feat(*): Enable sliding filters bar for smaller viewports --- src/routes/mydex/+page.svelte | 270 ++++++++++++++++++---------------- 1 file changed, 142 insertions(+), 128 deletions(-) diff --git a/src/routes/mydex/+page.svelte b/src/routes/mydex/+page.svelte index 9153bfe..4f927bd 100644 --- a/src/routes/mydex/+page.svelte +++ b/src/routes/mydex/+page.svelte @@ -27,6 +27,7 @@ let showOrigins = true; let showForms = true; + let drawerOpen = false; function toggleOrigins() { showOrigins = !showOrigins; @@ -152,135 +153,148 @@ {#if !localUser}

Please sign in

{:else} -
- - -
-
- {#if combinedData && combinedData.length > 0} - {#each combinedData as { pokedexEntry, catchRecord }} - - {/each} - {:else if failedToLoad} - {#if creatingRecords && totalRecordsCreated > 0} -

Processed {totalRecordsCreated} Pokédex entries so far...

-

Please be patient, this may take some time.

- {:else if creatingRecords} -

Processing...

-

Please be patient, this may take some time.

+
+ +
+ +
+
+ {#if combinedData && combinedData.length > 0} + {#each combinedData as { pokedexEntry, catchRecord }} + + {/each} + {:else if failedToLoad} + {#if creatingRecords && totalRecordsCreated > 0} +

Processed {totalRecordsCreated} Pokédex entries so far...

+

Please be patient, this may take some time.

+ {:else if creatingRecords} +

Processing...

+

Please be patient, this may take some time.

+ {:else} +

Failed to load

+

+ If you're seeing this, you probably haven't created your Pokédex data yet. Please do + so by clicking this button. +

+ + {/if} {:else} -

Failed to load

-

- If you're seeing this, you probably haven't created your Pokédex data yet. Please do - so by clicking this button. -

- +
+

Loading Pokédex

+ +
{/if} - {:else} -
-

Loading Pokédex

- -
- {/if} -
-
+
+
+
+
+ + +
{/if}