diff --git a/.vscode/settings.json b/.vscode/settings.json index 49709b1..3a0d416 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,9 @@ "[svelte]": { "editor.defaultFormatter": "svelte.svelte-vscode" }, - "typescript.tsdk": "node_modules\\typescript\\lib" + "typescript.tsdk": "node_modules\\typescript\\lib", + "svelte.plugin.svelte.compilerWarnings": { + "a11y-no-noninteractive-element-interactions": "ignore", + "a11y-click-events-have-key-events": "ignore" + } } diff --git a/src/app.scss b/src/app.scss index b0d221d..5b837c6 100644 --- a/src/app.scss +++ b/src/app.scss @@ -56,6 +56,10 @@ ol > li { list-style: decimal; } +html.modal-is-open { + scrollbar-gutter: stable; +} + body:has(.bytemd-fullscreen) { overflow: hidden; } diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte new file mode 100644 index 0000000..211879b --- /dev/null +++ b/src/lib/components/modal.svelte @@ -0,0 +1,55 @@ + + + +
+
+ {title} +
+ +
+ +
+
+ +