diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-10-08 20:15:46 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-10-08 20:15:46 +0200 |
commit | 7114391230df7a6dbca73b4994ede889a6dd39e8 (patch) | |
tree | 109f877b96beb3e155dbee5c1f01812c07d38c7b /themes/PaperMod/assets | |
parent | 951f894d560d33f8a994c183e71130cc3e47fefe (diff) |
sync theme
Diffstat (limited to 'themes/PaperMod/assets')
-rw-r--r-- | themes/PaperMod/assets/css/core/reset.css | 2 | ||||
-rw-r--r-- | themes/PaperMod/assets/js/fastsearch.js | 7 |
2 files changed, 8 insertions, 1 deletions
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 |