mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 18:10:06 -04:00
Update SearchField.svelte
This commit is contained in:
parent
d9d17ffc18
commit
e81e6ece5a
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { getContext } from 'svelte'
|
import { getContext } from 'svelte'
|
||||||
import { query, search, setSearchParam } from '../store.js'
|
import { query, search, setSearchParam } from '~/store'
|
||||||
import SearchSyntaxPopup from './SearchSyntaxPopup.svelte'
|
import SearchSyntaxPopup from './SearchSyntaxPopup.svelte'
|
||||||
|
|
||||||
const { open } = getContext('simple-modal')
|
const { open } = getContext('simple-modal')
|
||||||
|
@ -48,18 +48,18 @@
|
||||||
placeholder="Search for channels"
|
placeholder="Search for channels"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 flex justify-between">
|
<div class="mt-2 flex justify-between px-1">
|
||||||
<span class="inline-flex text-sm text-gray-500 dark:text-gray-400 font-mono"
|
<span class="inline-flex text-sm text-gray-500 dark:text-gray-400 font-mono"
|
||||||
>Found
|
>Found
|
||||||
<span class:animate-spin="{isLoading}">{ !isLoading ? found.toLocaleString() : '/' }</span>
|
<span class:animate-spin="{isLoading}">{ !isLoading ? found.toLocaleString() : '/' }</span>
|
||||||
channels</span
|
channel(s)</span
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
on:click|preventDefault="{showSearchSyntax}"
|
on:click|preventDefault="{showSearchSyntax}"
|
||||||
class="inline-flex text-sm text-gray-500 dark:text-gray-400 font-mono hover:underline hover:text-blue-500 dark:hover:text-blue-400"
|
class="inline-flex text-sm text-gray-500 dark:text-gray-400 font-mono hover:underline hover:text-blue-500 dark:hover:text-blue-400"
|
||||||
>
|
>
|
||||||
Advanced search syntax
|
Search syntax
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue