diff --git a/src/routes/(app)/chat/[id]/MessageCard.svelte b/src/routes/(app)/chat/[id]/MessageCard.svelte index 0b7ee4a..1d58760 100644 --- a/src/routes/(app)/chat/[id]/MessageCard.svelte +++ b/src/routes/(app)/chat/[id]/MessageCard.svelte @@ -6,7 +6,7 @@ import type { ChatMessage } from "$lib/chat-service.svelte"; import MessageEditor from "./MessageEditor.svelte"; import { Button } from "@/components/ui/button"; - import { FilePlus2Icon, Trash2Icon } from "lucide-svelte"; + import { EditIcon, EyeIcon, FilePlus2Icon, Trash2Icon } from "lucide-svelte"; import AttachmentControls from "./AttachmentControls.svelte"; import { DropdownMenu, @@ -37,6 +37,7 @@ }: Props = $props(); let format = "markdown"; let showAttachmentControls = $state(false); + let mode: "edit" | "view" = $state("edit"); function handleKeyPress(event: KeyboardEvent) { if (event.ctrlKey && event.key === "Enter") { @@ -98,7 +99,18 @@ > - +