Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Remove search dialog introductory detail (#1245)

Regan Bell6ffddacc6094
diff --git a/docs/screenshots/search-detail-after.png b/docs/screenshots/search-detail-after.png
new file mode 100644
index 000000000..8bd283540
Binary files /dev/null and b/docs/screenshots/search-detail-after.png differ
diff --git a/docs/screenshots/search-detail-before.png b/docs/screenshots/search-detail-before.png
new file mode 100644
index 000000000..522ba93f6
Binary files /dev/null and b/docs/screenshots/search-detail-before.png differ
diff --git a/plugins/web-ui/src/search.ts b/plugins/web-ui/src/search.ts
index 41ff6fdac..73a2bf843 100644
--- a/plugins/web-ui/src/search.ts
+++ b/plugins/web-ui/src/search.ts
@@ -291,9 +291,9 @@ function askRow(): TemplateResult {
function paletteTpl(): TemplateResult {
const q = searchState.query.trim();
- let body: TemplateResult;
+ let body: TemplateResult | typeof nothing;
if (q.length < MIN_QUERY_LEN) {
- body = html`<div class="chat-search-empty">Search every chat you can see: messages, not just titles.</div>`;
+ body = nothing;
} else if (searchState.loading && !searchState.hits.length) {
body = html`<div class="chat-search-empty">Searching…</div>`;
} else if (searchState.failed) {