enh/refac: allow setting full context mode from model editor

This commit is contained in:
Timothy Jaeryang Baek 2025-07-09 03:22:24 +04:00
parent dd87111c80
commit e37e6e6b03
2 changed files with 5 additions and 4 deletions

View file

@ -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')}

View file

@ -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">