diff --git a/frontend/src/components/Chunks.tsx b/frontend/src/components/Chunks.tsx index 5c9c25b8..bdec3cf6 100644 --- a/frontend/src/components/Chunks.tsx +++ b/frontend/src/components/Chunks.tsx @@ -462,33 +462,36 @@ const Chunks: React.FC = ({ {fileSearchQuery && ( -
- {fileSearchResults.length === 0 ? ( -
- {t('settings.sources.noResults')} -
- ) : ( - fileSearchResults.map((result, index) => ( -
handleSearchResultClick(result)} - className={`flex cursor-pointer items-center px-3 py-2 hover:bg-[#ECEEEF] dark:hover:bg-[#27282D] ${ - index !== fileSearchResults.length - 1 - ? 'border-b border-[#D1D9E0] dark:border-[#6A6A6A]' - : '' - }`} - > - {result.isFile - - {result.path.split('/').pop() || result.path} - +
+
+ {fileSearchResults.length === 0 ? ( +
+ {t('settings.sources.noResults')}
- )) - )} + ) : ( + fileSearchResults.map((result, index) => ( +
handleSearchResultClick(result)} + className={`flex cursor-pointer items-center px-3 py-2 hover:bg-[#ECEEEF] dark:hover:bg-[#27282D] ${ + index !== fileSearchResults.length - 1 + ? 'border-b border-[#D1D9E0] dark:border-[#6A6A6A]' + : '' + }`} + > + {result.isFile + + {result.path.split('/').pop() || result.path} + +
+ )) + )} +
)}
diff --git a/frontend/src/components/FileTreeComponent.tsx b/frontend/src/components/FileTreeComponent.tsx index 1aecc773..ad714869 100644 --- a/frontend/src/components/FileTreeComponent.tsx +++ b/frontend/src/components/FileTreeComponent.tsx @@ -452,7 +452,7 @@ const FileTreeComponent: React.FC = ({ > left-arrow - +
{sourceName} @@ -485,22 +485,18 @@ const FileTreeComponent: React.FC = ({
- {/* Right side with search and add button */} -
- {/* Upload status indicator */} +
+ {processingRef.current && (
- {currentOpRef.current === 'add' - ? t('settings.sources.uploadingFilesTitle') + {currentOpRef.current === 'add' + ? t('settings.sources.uploadingFilesTitle') : t('settings.sources.deletingTitle')}
)} - - {/* Search element with fixed width matching Figma specs */} -
+ {renderFileSearch()} -
- + {/* Add file button */} {!processingRef.current && (