From b9376a145080789636c04166d1e4327809acd97f Mon Sep 17 00:00:00 2001 From: Roel Nieskens Date: Wed, 9 Oct 2024 08:34:59 +0200 Subject: [PATCH 1/7] Use proper ID to scroll to font report How could this have worked before?! --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 30c7160..9a9d49c 100644 --- a/src/App.js +++ b/src/App.js @@ -38,7 +38,7 @@ export default { that.font = fondue; that.$nextTick(() => { that.working = false; - document.getElementById("Fontreport").scrollIntoView(); + document.getElementById("report").scrollIntoView(); }); }) .catch(function () { From be35a03bacadd83290b20f46b371fa39b59d1abd Mon Sep 17 00:00:00 2001 From: Roel Nieskens Date: Wed, 9 Oct 2024 08:52:35 +0200 Subject: [PATCH 2/7] Consistently rename modal events --- src/App.vue | 6 +++--- src/components/InfoModal.js | 4 ++-- src/components/InfoModal.vue | 2 +- src/components/TheFondue.js | 4 ++-- src/components/TheFondue.vue | 2 +- src/mixins/{toggleModal.js => toggleInfoModal.js} | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) rename src/mixins/{toggleModal.js => toggleInfoModal.js} (77%) diff --git a/src/App.vue b/src/App.vue index 4d0b403..ca98ad0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,18 +4,18 @@ @drop.prevent="getFont" @dragover.prevent="dragStatus(true)" @mouseout="dragStatus(false)" - @keydown.esc="toggleModal(true)" + @keydown.esc="toggleInfoModal(true)" tabindex="0" :class="{ dragging, working }" > - +
Heya! You’re looking at the beta site. Comments, bugs or feedback? Let me know! diff --git a/src/components/InfoModal.js b/src/components/InfoModal.js index dc61c09..43cb52c 100644 --- a/src/components/InfoModal.js +++ b/src/components/InfoModal.js @@ -1,5 +1,5 @@ -import toggleModal from "../mixins/toggleModal.js"; +import toggleInfoModal from "../mixins/toggleInfoModal.js"; export default { - mixins: [toggleModal], + mixins: [toggleInfoModal], }; diff --git a/src/components/InfoModal.vue b/src/components/InfoModal.vue index 22c5791..dd84a28 100644 --- a/src/components/InfoModal.vue +++ b/src/components/InfoModal.vue @@ -4,7 +4,7 @@ type="button" aria-label="Info" class="info" - @click="toggleModal" + @click="toggleInfoModal" >