diff --git a/src/gql/home/tags.graphql b/src/gql/home/tags.graphql index e83b032a8..b17598f4c 100644 --- a/src/gql/home/tags.graphql +++ b/src/gql/home/tags.graphql @@ -1,5 +1,5 @@ -query GetTags { - getTags { +query GetTags($limit: Int) { + getTags(filter: { limit: $limit }) { id name } diff --git a/src/lib/components/mods/ModGrid.svelte b/src/lib/components/mods/ModGrid.svelte index 840d91152..a707071af 100644 --- a/src/lib/components/mods/ModGrid.svelte +++ b/src/lib/components/mods/ModGrid.svelte @@ -1,6 +1,6 @@ -
- {#if newMod && $user !== null} - {$t('mods.new')} - {/if} + const sortedTags = (tags: Tag[]): Tag[] => tags.toSorted((a, b) => a.name.localeCompare(b.name)); + + let tagsOpen = false; + +
{#if showSearch}
-
-
+
+
+ +
+
-
+