From 36f968881b722a00c8c7072b1fe0f36ce1a3f8e4 Mon Sep 17 00:00:00 2001 From: Honey Date: Wed, 27 May 2026 12:55:26 +0200 Subject: [PATCH] feat: persistent inline header search with overlay results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the hidden toggle-based mobile search bar with a permanently visible pill-shaped search input in the header row, next to the logo. - Search is always visible — no button click required - Typing shows a floating overlay with library results (artists, albums, songs) without navigating away from the current page - Clearing the input or navigating to any page closes the overlay silently - The ✕ clear button appears only while text is present - navigate() now calls closeHeaderSearch() so results disappear cleanly when tapping any result or bottom nav tab - Old toggleMobileSearch / closeMobileSearch kept as no-op stubs for safety Co-Authored-By: Claude Sonnet 4.6 --- index.html | 24 +++++++++++------------- src/main.js | 4 ++-- src/ui.js | 18 +++--------------- src/views.js | 34 ++++++++++++++++++++++++++-------- styles.css | 6 ++++++ 5 files changed, 48 insertions(+), 38 deletions(-) diff --git a/index.html b/index.html index 27bd576..9be13a3 100644 --- a/index.html +++ b/index.html @@ -103,30 +103,28 @@
-
-