mirror of
https://github.com/open-webui/open-webui
synced 2025-04-03 12:31:32 +00:00
refac: styling
This commit is contained in:
parent
5f792d2771
commit
0bc5441d72
@ -374,7 +374,7 @@
|
||||
{/if}
|
||||
|
||||
<div class="px-3 mb-2 max-h-64 overflow-y-auto scrollbar-hidden group relative">
|
||||
{#if tags}
|
||||
{#if tags && items.filter((item) => !(item.model?.info?.meta?.hidden ?? false)).length > 0}
|
||||
<div
|
||||
class=" flex w-full sticky top-0 z-10 bg-white dark:bg-gray-850 overflow-x-auto scrollbar-none"
|
||||
on:wheel={(e) => {
|
||||
@ -457,8 +457,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#each filteredItems as item, index}
|
||||
{#if !(item.model?.info?.meta?.hidden ?? false)}
|
||||
{#each filteredItems.filter((item) => !(item.model?.info?.meta?.hidden ?? false)) as item, index}
|
||||
<button
|
||||
aria-label="model-item"
|
||||
class="flex w-full text-left font-medium line-clamp-1 select-none items-center rounded-button py-2 pl-3 pr-1.5 text-sm text-gray-700 dark:text-gray-100 outline-hidden transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg cursor-pointer data-highlighted:bg-muted {index ===
|
||||
@ -627,7 +626,6 @@
|
||||
</div>
|
||||
{/if}
|
||||
</button>
|
||||
{/if}
|
||||
{:else}
|
||||
<div>
|
||||
<div class="block px-3 py-2 text-sm text-gray-700 dark:text-gray-100">
|
||||
|
Loading…
Reference in New Issue
Block a user