refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2025-03-31 17:58:48 -07:00
parent 5f792d2771
commit 0bc5441d72

View File

@ -374,7 +374,7 @@
{/if} {/if}
<div class="px-3 mb-2 max-h-64 overflow-y-auto scrollbar-hidden group relative"> <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 <div
class=" flex w-full sticky top-0 z-10 bg-white dark:bg-gray-850 overflow-x-auto scrollbar-none" class=" flex w-full sticky top-0 z-10 bg-white dark:bg-gray-850 overflow-x-auto scrollbar-none"
on:wheel={(e) => { on:wheel={(e) => {
@ -457,8 +457,7 @@
</div> </div>
{/if} {/if}
{#each filteredItems as item, index} {#each filteredItems.filter((item) => !(item.model?.info?.meta?.hidden ?? false)) as item, index}
{#if !(item.model?.info?.meta?.hidden ?? false)}
<button <button
aria-label="model-item" 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 === 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> </div>
{/if} {/if}
</button> </button>
{/if}
{:else} {:else}
<div> <div>
<div class="block px-3 py-2 text-sm text-gray-700 dark:text-gray-100"> <div class="block px-3 py-2 text-sm text-gray-700 dark:text-gray-100">