Skip to content

Commit

Permalink
Undo class sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
klickreflex committed Nov 11, 2021
1 parent 0cb04e6 commit 71262e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/resources/views/components/_search_form.antlers.html
Expand Up @@ -13,7 +13,7 @@
@keydown.window.prevent.slash.="open = true, setTimeout(() => {$refs.input.focus()}, 200)"
@keydown.window.prevent.esc="open = false"
@click.outside="open = false"
class="relative flex py-2"
class="flex py-2 relative"
x-cloak
>
<button
Expand All @@ -28,19 +28,19 @@
action="/search"
x-show="open"
x-transition.origin.right.duration.200ms
class="absolute inset-y-0 right-0 flex -mr-2"
class="absolute inset-y-0 right-0 -mr-2 flex"
>
<input
x-ref="input"
class="h-full pr-10 rounded w-52 border-neutral focus-visible:border-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition"
class="w-52 h-full pr-10 rounded border-neutral focus-visible:border-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition"
placeholder="{{ trans:strings.search }}"
type="text"
x-model="value"
value="{{ get:q }}"
name="q"
/>
<button
class="absolute inset-y-0 right-0 flex items-center mr-2 text-neutral hover:text-primary"
class="absolute inset-y-0 right-0 mr-2 flex items-center text-neutral hover:text-primary"
aria-label="{{ trans:strings.search }}"
:disabled="value.length === 0"
:class="{ 'opacity-25 cursor-default': value.length === 0, 'opacity-100': value.length > 0 }"
Expand Down

0 comments on commit 71262e2

Please sign in to comment.