From c2bf45313d7af210b1dce08b5fb38de586a9b913 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 15 Aug 2024 15:20:57 -0400 Subject: [PATCH] fixed dropdown locations --- frontend/src/AvatarMenu.svelte | 76 ++++++++++++++++++++++++++++++++++ frontend/src/Search.svelte | 27 ++++++------ 2 files changed, 88 insertions(+), 15 deletions(-) create mode 100644 frontend/src/AvatarMenu.svelte diff --git a/frontend/src/AvatarMenu.svelte b/frontend/src/AvatarMenu.svelte new file mode 100644 index 0000000..e68f19e --- /dev/null +++ b/frontend/src/AvatarMenu.svelte @@ -0,0 +1,76 @@ + + +
+ +
+
+ {#if isAniListLoggedIn} +
{currentAniListUser.data.Viewer.name}
+ {:else} +
You are not logged into AniList
+ {/if} +
+
    + {#if isAniListLoggedIn} +
  • + +
  • + {/if} + {#if isMALLoggedIn} +
  • + +
  • + {/if} + {#if isSimklLoggedIn} +
  • + +
  • + {/if} +
+
+ +
+
+
\ No newline at end of file diff --git a/frontend/src/Search.svelte b/frontend/src/Search.svelte index 12638d3..a62d3e0 100644 --- a/frontend/src/Search.svelte +++ b/frontend/src/Search.svelte @@ -16,10 +16,15 @@ }) } + function searchDropdown(): void { + let dropdown = document.querySelector("#aniListSearchDropdown") + dropdown.classList.toggle("hidden") + } + -
+
- \ No newline at end of file