diff --git a/frontend/src/lib/components/ResourceList.svelte b/frontend/src/lib/components/ResourceList.svelte index b9ed178..765a7fb 100644 --- a/frontend/src/lib/components/ResourceList.svelte +++ b/frontend/src/lib/components/ResourceList.svelte @@ -6,38 +6,93 @@ export let tag: string; export let resources: Resource[]; - console.log(`ResourceList Component - Tag: ${tag}`, resources); // Debugging line + // State for toggling additional resources + let expandedResourceIndex: number | null = null; + + function toggleAdditionalResources(index: number) { + expandedResourceIndex = expandedResourceIndex === index ? null : index; + }
By {resource.author}
-{resource.Description}
-- Tags: - {#each resource.tags as resourceTag} - {resourceTag} - {/each} -
-By {resource.author}
+{resource.Description}
++ Tags: + {#each resource.tags as resourceTag} + {resourceTag} + {/each} +
+