Skip to content

Commit

Permalink
Added persistence to the search form when on search page
Browse files Browse the repository at this point in the history
  • Loading branch information
kieraneglin committed Feb 13, 2024
1 parent dd89408 commit a85e563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pinchflat_web/components/layouts/app.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<.sidebar />

<div class="relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden">
<.header />
<.header params={@conn.params} />
<main>
<div class="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10">
<.flash_group flash={@flash} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<input
type="text"
name="q"
value={@params["q"]}
placeholder="Type to search..."
class="w-full bg-transparent pl-9 pr-4 border-0 focus:ring-0 focus:outline-none xl:w-125"
/>
Expand Down

0 comments on commit a85e563

Please sign in to comment.