From d0237187c4a4817bdc0ac7debc5ee4b3b2448cd3 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 25 Oct 2025 08:58:46 -0700 Subject: [PATCH] Ran prettier --- datasette/static/navigation-search.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/datasette/static/navigation-search.js b/datasette/static/navigation-search.js index ec4d2970..48de5c4f 100644 --- a/datasette/static/navigation-search.js +++ b/datasette/static/navigation-search.js @@ -188,9 +188,8 @@ class NavigationSearch extends HTMLElement { setupEventListeners() { const dialog = this.shadowRoot.querySelector("dialog"); const input = this.shadowRoot.querySelector(".search-input"); - const resultsContainer = this.shadowRoot.querySelector( - ".results-container" - ); + const resultsContainer = + this.shadowRoot.querySelector(".results-container"); // Global keyboard listener for "/" document.addEventListener("keydown", (e) => { @@ -304,7 +303,7 @@ class NavigationSearch extends HTMLElement { this.matches = (this.allItems || []).filter( (item) => item.name.toLowerCase().includes(lowerQuery) || - item.url.toLowerCase().includes(lowerQuery) + item.url.toLowerCase().includes(lowerQuery), ); } this.selectedIndex = this.matches.length > 0 ? 0 : -1; @@ -336,12 +335,12 @@ class NavigationSearch extends HTMLElement { >
${this.escapeHtml( - match.name + match.name, )}
${this.escapeHtml(match.url)}
- ` + `, ) .join(""); @@ -377,7 +376,7 @@ class NavigationSearch extends HTMLElement { detail: match, bubbles: true, composed: true, - }) + }), ); // Navigate to URL