From 765d05ece1cab5da45e59c1cbbd2e3b55db88fb2 Mon Sep 17 00:00:00 2001 From: u80864958 Date: Tue, 21 Oct 2025 14:44:14 +0200 Subject: [PATCH] feat: show --- src/lib/components/Artefact.svelte | 11 +++++++++-- .../[project]/artefact/[artefact_uuid]/+page.svelte | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) 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}