From 3b9794b6df47ec2697291a02171b6f9738de418d Mon Sep 17 00:00:00 2001 From: quoid Date: Sat, 27 Feb 2021 16:06:12 -0500 Subject: [PATCH 1/9] remove static width from editor search, resolves #97 --- src/Components/Editor/Search.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Components/Editor/Search.svelte b/src/Components/Editor/Search.svelte index 00d9e449..866b04e1 100644 --- a/src/Components/Editor/Search.svelte +++ b/src/Components/Editor/Search.svelte @@ -141,7 +141,6 @@ position: absolute; right: 0.5rem; top: 0; - width: 18rem; z-index: 4; } From 354844ec38e2d4d6d1358204d4eda1a0a93a6c84 Mon Sep 17 00:00:00 2001 From: quoid Date: Sat, 27 Feb 2021 16:13:17 -0500 Subject: [PATCH 2/9] turn off autocorrect in filter input, related #100 --- src/Components/Sidebar/Filter.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Components/Sidebar/Filter.svelte b/src/Components/Sidebar/Filter.svelte index 1358b5e4..583ba51a 100644 --- a/src/Components/Sidebar/Filter.svelte +++ b/src/Components/Sidebar/Filter.svelte @@ -80,6 +80,7 @@ autocapitalize="off" autocomplete="off" spellcheck="false" + autocorrect="off" bind:value={query} {disabled} > From 89be0359dd956f6a4df16b8691f91b4ba53abc96 Mon Sep 17 00:00:00 2001 From: quoid Date: Sat, 27 Feb 2021 16:20:06 -0500 Subject: [PATCH 3/9] prevent auto full stops in editor, resolves #100 --- src/App.svelte | 9 +++++++++ src/Components/Editor/CodeMirror.svelte | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index 6d93cd4d..12c2cc64 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -41,6 +41,15 @@ // start initialization process safari.extension.dispatchMessage("REQ_INIT_DATA"); }); + + // currently inactive, but could be used to globally prevent auto text replacement in app + // eslint-disable-next-line no-unused-vars + function preventAutoTextReplacements(e) { + if (e.inputType === "insertReplacementText" && e.data === ". ") { + e.preventDefault(); + e.target.value += " "; + } + }
\ No newline at end of file +Userscripts Safari
\ No newline at end of file From 32b0c7008b33fab04de5e1efa1c8f5417a8febbc Mon Sep 17 00:00:00 2001 From: quoid Date: Sat, 27 Feb 2021 17:51:03 -0500 Subject: [PATCH 9/9] include web demo #99 --- index.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 00000000..dc965a8e --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Userscripts Safari
Built for Safari - functionality might be broken in other browsers