mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +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}
|
{#each selectedKnowledge as file, fileIdx}
|
||||||
<FileItem
|
<FileItem
|
||||||
{file}
|
{file}
|
||||||
|
item={file}
|
||||||
name={file.name}
|
name={file.name}
|
||||||
|
modal={true}
|
||||||
|
edit={true}
|
||||||
type={file?.legacy
|
type={file?.legacy
|
||||||
? `Legacy${file.type ? ` ${file.type}` : ''}`
|
? `Legacy${file.type ? ` ${file.type}` : ''}`
|
||||||
: (file?.type ?? 'Collection')}
|
: (file?.type ?? 'Collection')}
|
||||||
|
|
|
||||||
|
|
@ -85,13 +85,13 @@
|
||||||
|
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<DropdownMenu.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}
|
sideOffset={8}
|
||||||
side="bottom"
|
side="bottom"
|
||||||
align="start"
|
align="start"
|
||||||
transition={flyAndScale}
|
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="flex flex-1">
|
||||||
<div class=" self-center ml-1 mr-3">
|
<div class=" self-center ml-1 mr-3">
|
||||||
<Search />
|
<Search />
|
||||||
|
|
@ -104,8 +104,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr class=" border-gray-50 dark:border-gray-700 my-1.5" />
|
|
||||||
|
|
||||||
<div class="max-h-48 overflow-y-scroll">
|
<div class="max-h-48 overflow-y-scroll">
|
||||||
{#if filteredItems.length === 0}
|
{#if filteredItems.length === 0}
|
||||||
<div class="text-center text-sm text-gray-500 dark:text-gray-400">
|
<div class="text-center text-sm text-gray-500 dark:text-gray-400">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue