mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 16:35:19 -05:00
refac
This commit is contained in:
1 parent
0d8288dc0a
commit
c340b5f3e0
3 files changed
+15
-6
No files matched your search
@@ -3048,7 +3048,7 @@
|
||||
{:else if error}
|
||||
<div class="p-4 text-xs">{error}</div>
|
||||
{:else if visibleEntries.length === 0 && !creatingFolder && !creatingFile}
|
||||
<div class="flex items-center justify-center py-12">
|
||||
<div class="flex h-full items-center justify-center p-6 text-center">
|
||||
<div class="text-xs text-gray-400 dark:text-gray-500">
|
||||
{$i18n.t('This folder is empty')}
|
||||
</div>
|
||||
|
||||
@@ -308,7 +308,12 @@
|
||||
<span class="ml-0.5 text-gray-500">{Object.keys(tools).length}</span>
|
||||
</div>
|
||||
|
||||
<div class="text-gray-500">
|
||||
<div class="flex shrink-0 items-center gap-2 text-gray-500">
|
||||
{#if selectedToolIds.length > 0}
|
||||
<span class="text-xs">
|
||||
{$i18n.t('{{COUNT}} selected', { COUNT: selectedToolIds.length })}
|
||||
</span>
|
||||
{/if}
|
||||
<ChevronRight />
|
||||
</div>
|
||||
</div>
|
||||
@@ -331,7 +336,12 @@
|
||||
<span class="ml-0.5 text-gray-500">{Object.keys(skills).length}</span>
|
||||
</div>
|
||||
|
||||
<div class="text-gray-500">
|
||||
<div class="flex shrink-0 items-center gap-2 text-gray-500">
|
||||
{#if selectedSkillIds.length > 0}
|
||||
<span class="text-xs">
|
||||
{$i18n.t('{{COUNT}} selected', { COUNT: selectedSkillIds.length })}
|
||||
</span>
|
||||
{/if}
|
||||
<ChevronRight />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -431,10 +431,9 @@
|
||||
<div class="text-xs text-gray-500 dark:text-gray-400">{error}</div>
|
||||
</div>
|
||||
{:else if entries.length === 0 && !creatingFolder && !creatingFile}
|
||||
<div class="flex flex-col items-center justify-center flex-1 p-6 text-center gap-2">
|
||||
<Folder className="size-5 text-gray-300 dark:text-gray-600" />
|
||||
<div class="flex flex-1 items-center justify-center p-6 text-center">
|
||||
<div class="text-xs text-gray-400 dark:text-gray-500">
|
||||
{$i18n.t('No files yet. Upload files or run Python code to create them.')}
|
||||
{$i18n.t('This folder is empty')}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user