|
@@ -760,7 +760,7 @@
|
|
|
{#if largeScreen}
|
|
{#if largeScreen}
|
|
|
<div class="flex-1 flex justify-start w-full h-full max-h-full">
|
|
<div class="flex-1 flex justify-start w-full h-full max-h-full">
|
|
|
{#if selectedFile}
|
|
{#if selectedFile}
|
|
|
- <div class=" flex flex-col w-full h-full max-h-full">
|
|
|
|
|
|
|
+ <div class=" flex flex-col w-full">
|
|
|
<div class="shrink-0 mb-2 flex items-center">
|
|
<div class="shrink-0 mb-2 flex items-center">
|
|
|
{#if !showSidepanel}
|
|
{#if !showSidepanel}
|
|
|
<div class="-translate-x-2">
|
|
<div class="-translate-x-2">
|
|
@@ -902,7 +902,7 @@
|
|
|
<input
|
|
<input
|
|
|
class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-hidden bg-transparent"
|
|
class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-hidden bg-transparent"
|
|
|
bind:value={query}
|
|
bind:value={query}
|
|
|
- placeholder={$i18n.t('Search Collection')}
|
|
|
|
|
|
|
+ placeholder={`${$i18n.t('Search Collection')}${(knowledge?.files ?? []).length ? ` (${(knowledge?.files ?? []).length})` : ''}`}
|
|
|
on:focus={() => {
|
|
on:focus={() => {
|
|
|
selectedFileId = null;
|
|
selectedFileId = null;
|
|
|
}}
|
|
}}
|