diff --git a/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss index 69278c1d1aa9..47efd176093a 100644 --- a/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss +++ b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss @@ -1,8 +1,23 @@ @use "@/styles/Spacings.module.scss"; -.brain_line { +.close_brains_wrapper { display: flex; - align-items: center; - justify-content: space-between; - padding: Spacings.$spacing02; + flex-direction: column; + padding-bottom: Spacings.$spacing03; + gap: Spacings.$spacing01; + + .brain_line { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + padding-inline: Spacings.$spacing05; + overflow: hidden; + + .brain_name { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } } diff --git a/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx index 9630e1cce6eb..208689115fe0 100644 --- a/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx +++ b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx @@ -37,14 +37,16 @@ const RelatedBrains = ({ closeBrains }: RelatedBrainsProps): JSX.Element => { icon="brain" foldedByDefault={true} > - {closeBrains.map((brain, index) => ( -
-

@{brain.name}

-

- {Math.round(brain.similarity * 100)} -

-
- ))} +
+ {closeBrains.map((brain, index) => ( +
+

@{brain.name}

+

+ {Math.round(brain.similarity * 100)} +

+
+ ))} +
); }; diff --git a/frontend/lib/components/ui/FoldableSection/FoldableSection.module.scss b/frontend/lib/components/ui/FoldableSection/FoldableSection.module.scss index 232b76400ef6..c4180c3b3f00 100644 --- a/frontend/lib/components/ui/FoldableSection/FoldableSection.module.scss +++ b/frontend/lib/components/ui/FoldableSection/FoldableSection.module.scss @@ -4,7 +4,6 @@ .foldable_section_wrapper { display: flex; flex-direction: column; - gap: Spacings.$spacing04; border-radius: 5px; border: 1px dashed Colors.$light-grey; overflow: hidden; @@ -20,10 +19,14 @@ display: flex; align-items: center; gap: Spacings.$spacing03; - } + overflow: hidden; - .header_title { - font-weight: bold; + .header_title { + font-weight: bold; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } } &:hover {