From 7114391230df7a6dbca73b4994ede889a6dd39e8 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 8 Oct 2023 20:15:46 +0200 Subject: sync theme --- themes/PaperMod/assets/css/core/reset.css | 2 ++ themes/PaperMod/assets/js/fastsearch.js | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'themes/PaperMod/assets') diff --git a/themes/PaperMod/assets/css/core/reset.css b/themes/PaperMod/assets/css/core/reset.css index f509cf6..7393d57 100644 --- a/themes/PaperMod/assets/css/core/reset.css +++ b/themes/PaperMod/assets/css/core/reset.css @@ -7,6 +7,8 @@ html { -webkit-tap-highlight-color: transparent; overflow-y: scroll; + -webkit-text-size-adjust: 100%; + text-size-adjust: 100%; } a, diff --git a/themes/PaperMod/assets/js/fastsearch.js b/themes/PaperMod/assets/js/fastsearch.js index 06ebcfb..9484e75 100644 --- a/themes/PaperMod/assets/js/fastsearch.js +++ b/themes/PaperMod/assets/js/fastsearch.js @@ -77,7 +77,12 @@ sInput.onkeyup = function (e) { // run a search query (for "term") every time a letter is typed // in the search box if (fuse) { - const results = fuse.search(this.value.trim()); // the actual query being run using fuse.js + let results; + if (params.fuseOpts) { + results = fuse.search(this.value.trim(), {limit: params.fuseOpts.limit}); // the actual query being run using fuse.js along with options + } else { + results = fuse.search(this.value.trim()); // the actual query being run using fuse.js + } if (results.length !== 0) { // build our html if result exists let resultSet = ''; // our results bucket -- cgit v1.2.3