bugfixing
This commit is contained in:
parent
e84b37946b
commit
c9d862af04
@ -373,11 +373,11 @@
|
|||||||
aria-label="Add new stock"
|
aria-label="Add new stock"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{#if inputValue?.length !== 0}
|
<Combobox.Content
|
||||||
<Combobox.Content
|
class="w-auto z-10 rounded-md bg-white dark:bg-default border border-gray-300 dark:border-gray-700 px-1 py-3 shadow-sm outline-hidden"
|
||||||
class="w-auto z-10 rounded-md bg-white dark:bg-default border border-gray-300 dark:border-gray-700 px-1 py-3 shadow-sm outline-hidden"
|
sideOffset={8}
|
||||||
sideOffset={8}
|
>
|
||||||
>
|
{#if inputValue?.length > 0}
|
||||||
{#each searchBarData as item}
|
{#each searchBarData as item}
|
||||||
<Combobox.Item
|
<Combobox.Item
|
||||||
class="cursor-pointer border-b border-gray-300 dark:border-gray-600 last:border-none flex h-fit w-auto select-none items-center rounded-button py-3 pl-5 pr-1.5 text-sm capitalize outline-hidden transition-all duration-75 data-highlighted:bg-gray-100 dark:data-highlighted:bg-primary"
|
class="cursor-pointer border-b border-gray-300 dark:border-gray-600 last:border-none flex h-fit w-auto select-none items-center rounded-button py-3 pl-5 pr-1.5 text-sm capitalize outline-hidden transition-all duration-75 data-highlighted:bg-gray-100 dark:data-highlighted:bg-primary"
|
||||||
@ -398,12 +398,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</Combobox.Item>
|
</Combobox.Item>
|
||||||
{:else}
|
{:else}
|
||||||
<span class="block px-5 py-2 text-sm">
|
<span
|
||||||
|
class="block px-5 py-2 text-sm text-muted dark:text-white"
|
||||||
|
>
|
||||||
No results found
|
No results found
|
||||||
</span>
|
</span>
|
||||||
{/each}
|
{/each}
|
||||||
</Combobox.Content>
|
{:else}
|
||||||
{/if}
|
<Combobox.Item
|
||||||
|
class="cursor-pointer border-b border-gray-300 dark:border-gray-600 last:border-none flex h-fit w-auto select-none items-center rounded-button py-1.5 pl-5 pr-1.5 text-sm capitalize outline-hidden"
|
||||||
|
>
|
||||||
|
<span class=" text-sm text-muted dark:text-white">
|
||||||
|
No results found
|
||||||
|
</span>
|
||||||
|
</Combobox.Item>
|
||||||
|
{/if}
|
||||||
|
</Combobox.Content>
|
||||||
</Combobox.Root>
|
</Combobox.Root>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user