mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
enh/refac: allow setting full context mode from model editor
This commit is contained in:
parent
dd87111c80
commit
e37e6e6b03
2 changed files with 5 additions and 4 deletions
|
|
@ -24,7 +24,10 @@
|
|||
{#each selectedKnowledge as file, fileIdx}
|
||||
<FileItem
|
||||
{file}
|
||||
item={file}
|
||||
name={file.name}
|
||||
modal={true}
|
||||
edit={true}
|
||||
type={file?.legacy
|
||||
? `Legacy${file.type ? ` ${file.type}` : ''}`
|
||||
: (file?.type ?? 'Collection')}
|
||||
|
|
|
|||
|
|
@ -85,13 +85,13 @@
|
|||
|
||||
<div slot="content">
|
||||
<DropdownMenu.Content
|
||||
class="w-full max-w-80 rounded-lg px-1 py-1.5 border border-gray-300/30 dark:border-gray-700/50 z-50 bg-white dark:bg-gray-850 dark:text-white shadow-lg"
|
||||
class="w-full max-w-80 rounded-xl px-1 py-1.5 border border-gray-300/30 dark:border-gray-700/50 z-50 bg-white dark:bg-gray-850 dark:text-white shadow-lg"
|
||||
sideOffset={8}
|
||||
side="bottom"
|
||||
align="start"
|
||||
transition={flyAndScale}
|
||||
>
|
||||
<div class=" flex w-full space-x-2 py-0.5 px-2">
|
||||
<div class=" flex w-full space-x-2 py-0.5 px-2 pb-2">
|
||||
<div class="flex flex-1">
|
||||
<div class=" self-center ml-1 mr-3">
|
||||
<Search />
|
||||
|
|
@ -104,8 +104,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<hr class=" border-gray-50 dark:border-gray-700 my-1.5" />
|
||||
|
||||
<div class="max-h-48 overflow-y-scroll">
|
||||
{#if filteredItems.length === 0}
|
||||
<div class="text-center text-sm text-gray-500 dark:text-gray-400">
|
||||
|
|
|
|||
Loading…
Reference in a new issue