diff --git a/frontend/src-tauri/tauri.conf.json b/frontend/src-tauri/tauri.conf.json index 4379249..84eb104 100644 --- a/frontend/src-tauri/tauri.conf.json +++ b/frontend/src-tauri/tauri.conf.json @@ -4,11 +4,11 @@ "beforeBuildCommand": "npm run build", "beforeDevCommand": "npm run dev", "devPath": "http://localhost:5173", - "distDir": "../static" + "distDir": "../build" }, "package": { "productName": "Focus", - "version": "0.1.0" + "version": "0.3.1" }, "tauri": { "allowlist": { diff --git a/frontend/src/lib/components/card/ModalCard.svelte b/frontend/src/lib/components/card/ModalCard.svelte index 1a450dd..01bf79f 100644 --- a/frontend/src/lib/components/card/ModalCard.svelte +++ b/frontend/src/lib/components/card/ModalCard.svelte @@ -8,8 +8,8 @@ export let card: Card; export let showModal: boolean; - let newTitle = card.title; - let newContent = card.content; + let newTitle: string = card.title; + let newContent: string = card.content; async function save(closeModal: boolean = true) { if (card.title !== newTitle || card.content !== newContent) { @@ -21,22 +21,28 @@ } + { + if (e.key === 'Escape') return save(true); + }} +/> + -