mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 06:49:03 +00:00
Merge pull request #3992 from thearyadev/feat/enter-to-select-model-indicator
feat: add indicator for enter-triggered model selection
This commit is contained in:
commit
36318e8a1b
@ -244,18 +244,20 @@
|
|||||||
show = false;
|
show = false;
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr class="border-gray-100 dark:border-gray-800" />
|
<hr class="border-gray-100 dark:border-gray-800" />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="px-3 my-2 max-h-64 overflow-y-auto scrollbar-hidden">
|
<div class="px-3 my-2 max-h-64 overflow-y-auto scrollbar-hidden group">
|
||||||
{#each filteredItems as item}
|
{#each filteredItems as item, index}
|
||||||
<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-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg cursor-pointer data-[highlighted]:bg-muted"
|
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-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg cursor-pointer data-[highlighted]:bg-muted {index ===
|
||||||
|
0
|
||||||
|
? 'bg-gray-100 dark:bg-gray-800 group-hover:bg-transparent'
|
||||||
|
: ''}"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
value = item.value;
|
value = item.value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user