diff --git a/src/pages/notes/[...id].astro b/src/pages/notes/[...id].astro index 3a478fa..d8e073d 100644 --- a/src/pages/notes/[...id].astro +++ b/src/pages/notes/[...id].astro @@ -61,8 +61,9 @@ const meta = `{ - + class="p-0 bg-white rounded-sm w-full max-w-md m-auto flex-col flex hidden"> + Scripture dialog. + \ No newline at end of file diff --git a/src/utils/modal.js b/src/utils/modal.js index 4c9f135..6b32a30 100644 --- a/src/utils/modal.js +++ b/src/utils/modal.js @@ -14,7 +14,10 @@ export const bindModals = () => { dialog[0]?.setAttribute('data-scripture', scripture); dialog[0]?.classList.remove("hidden"); //document.body.classList.add("overflow-hidden"); - }); }); + + dialog[0]?.addEventListener('click', (evt) => { + evt.target === dialog[0] && dialog[0]?.close(); + }); }; \ No newline at end of file
Scripture dialog.