+
{t('conversation.sources.text')}
@@ -114,7 +114,11 @@ export default function SourcesPopup({
/>
-
+
{options ? (
<>
{filteredOptions?.map((option: any, index: number) => {
@@ -133,18 +137,20 @@ export default function SourcesPopup({
src={SourceIcon}
alt="Source"
width={14} height={14}
- className="mr-3"
+ className="mr-3 flex-shrink-0"
/>
-
+
{option.name}
- {selectedDocs && selectedDocs.id === option.id && (
-
- )}
+
+ {selectedDocs && selectedDocs.id === option.id && (
+

+ )}
+
);
}
@@ -154,13 +160,15 @@ export default function SourcesPopup({
className="flex cursor-pointer items-center p-3 hover:bg-gray-100 dark:hover:bg-[#2C2E3C] transition-colors border-b border-[#D9D9D9] dark:border-dim-gray border-opacity-80 dark:text-[14px]"
onClick={handleEmptyDocumentSelect}
>
-

-
+
+
{t('none')}
- {selectedDocs === null && (
-
- )}
+
+ {selectedDocs === null && (
+

+ )}
+
>
) : (
@@ -170,7 +178,7 @@ export default function SourcesPopup({
)}