From 1eadac90f1c69a2271b73b20757a5278aa68c1ff Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 30 Sep 2024 18:16:08 -0400 Subject: [PATCH] Refactor input and button layout in ActivityComplete component --- .../lib/components/ActivityComplete.svelte | 27 ++++++++++--------- .../src/lib/components/AdventureModal.svelte | 14 ++++++---- .../src/routes/adventures/[id]/+page.svelte | 12 ++++----- 3 files changed, 30 insertions(+), 23 deletions(-) diff --git a/frontend/src/lib/components/ActivityComplete.svelte b/frontend/src/lib/components/ActivityComplete.svelte index 9415fc4..73f76e6 100644 --- a/frontend/src/lib/components/ActivityComplete.svelte +++ b/frontend/src/lib/components/ActivityComplete.svelte @@ -49,18 +49,21 @@
- { - if (e.key === 'Enter') { - e.preventDefault(); - addActivity(); - } - }} - /> +
+ { + if (e.key === 'Enter') { + e.preventDefault(); + addActivity(); + } + }} + /> + +
{#if inputVal && filteredItems.length > 0}
@@ -558,13 +563,12 @@ -
+
Activity Types ({adventure.activity_types?.length || 0})
-
-

hello

+

Coming soon!

diff --git a/frontend/src/routes/adventures/[id]/+page.svelte b/frontend/src/routes/adventures/[id]/+page.svelte index a5ffd1b..085809f 100644 --- a/frontend/src/routes/adventures/[id]/+page.svelte +++ b/frontend/src/routes/adventures/[id]/+page.svelte @@ -185,7 +185,7 @@ >{adventure.is_public ? 'Public' : 'Private'}
- {#if adventure.date} + {#if adventure.location}
-

Trip Details

+

Adventure Details

-

Trip Type

+

Adventure Type

{adventure.type[0].toLocaleUpperCase() + adventure.type.slice(1)}

@@ -353,11 +353,11 @@ {adventure.type.charAt(0).toUpperCase() + adventure.type.slice(1)}

- {adventure.date +