diff --git a/src/lib/components/Artefact.svelte b/src/lib/components/Artefact.svelte index d22ba6c..609e15f 100644 --- a/src/lib/components/Artefact.svelte +++ b/src/lib/components/Artefact.svelte @@ -3,8 +3,12 @@ import { Button, Card, Label, Modal, Select } from 'flowbite-svelte'; import MarkdownEditor from './MarkdownEditor.svelte'; import { getArtefact, updateArtefact } from '$lib/artefact.remote'; - let { artefact, tagClick = (_) => {} }: { artefact: Artefact; tagClick?: (tag: string) => void } = - $props(); + import Markdown from './Markdown.svelte'; + let { + artefact, + tagClick = (_) => {}, + showAll = false + }: { artefact: Artefact; tagClick?: (tag: string) => void; showAll?: boolean } = $props(); let edit = $state(false); let editValue: Artefact = $state({ @@ -77,6 +81,9 @@ {/each}

{artefact.description}

+ {#if showAll} + + {/if}

{#if artefact} - + {/if}