Added persistence to the search form when on search page

This commit is contained in:
Kieran Eglin 2024-02-13 11:46:47 -08:00
parent dd8940893f
commit a85e563a0f
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 2 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<.sidebar /> <.sidebar />
<div class="relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden"> <div class="relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden">
<.header /> <.header params={@conn.params} />
<main> <main>
<div class="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10"> <div class="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10">
<.flash_group flash={@flash} /> <.flash_group flash={@flash} />

View file

@ -20,6 +20,7 @@
<input <input
type="text" type="text"
name="q" name="q"
value={@params["q"]}
placeholder="Type to search..." placeholder="Type to search..."
class="w-full bg-transparent pl-9 pr-4 border-0 focus:ring-0 focus:outline-none xl:w-125" class="w-full bg-transparent pl-9 pr-4 border-0 focus:ring-0 focus:outline-none xl:w-125"
/> />