From c760d9400cf02e830c33749eed3894165b760432 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 6 May 2024 17:23:36 -0300 Subject: content, client: "no results" message --- src/static/css/site.css | 6 ++++++ src/static/js/client.js | 22 +++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) (limited to 'src/static') diff --git a/src/static/css/site.css b/src/static/css/site.css index 4fc2d8a3..17a85170 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -499,6 +499,12 @@ summary .group-name { margin-bottom: 5px; } +.wiki-search-no-results { + font-size: 0.9em; + padding: 2px 3px 4px 6px; + cursor: default; +} + .wiki-search-result { position: relative; display: flex; diff --git a/src/static/js/client.js b/src/static/js/client.js index d8828ad2..1b98137a 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -154,6 +154,14 @@ function cssProp(el, ...args) { } } +function templateContent(el) { + if (el?.nodeName !== 'TEMPLATE') { + throw new Error(`Expected a