diff --git a/src/interface/web/app/components/chatHistory/chatHistory.module.css b/src/interface/web/app/components/chatHistory/chatHistory.module.css index 984fb922..0e623b77 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.module.css +++ b/src/interface/web/app/components/chatHistory/chatHistory.module.css @@ -24,7 +24,7 @@ div.agentIndicator { div.trainOfThought { border: 1px var(--border-color) solid; border-radius: 16px; - padding: 16px; + padding: 0 16px; margin: 12px; box-shadow: 0 4px 10px var(--box-shadow-color); } diff --git a/src/interface/web/app/components/chatMessage/chatMessage.tsx b/src/interface/web/app/components/chatMessage/chatMessage.tsx index b7c7fdd8..3edec436 100644 --- a/src/interface/web/app/components/chatMessage/chatMessage.tsx +++ b/src/interface/web/app/components/chatMessage/chatMessage.tsx @@ -155,35 +155,36 @@ interface TrainOfThoughtProps { function chooseIconFromHeader(header: string, iconColor: string) { const compareHeader = header.toLowerCase(); + const classNames = `inline mt-1 mr-2 ${iconColor}`; if (compareHeader.includes("understanding")) { - return + return } if (compareHeader.includes("generating")) { - return ; + return ; } if (compareHeader.includes("data sources")) { - return ; + return ; } if (compareHeader.includes("notes")) { - return ; + return ; } if (compareHeader.includes("read")) { - return ; + return ; } if (compareHeader.includes("search")) { - return ; + return ; } if (compareHeader.includes("summary") || compareHeader.includes("summarize")) { - return ; + return ; } - return ; + return ; } @@ -195,7 +196,7 @@ export function TrainOfThought(props: TrainOfThoughtProps) { const icon = chooseIconFromHeader(header, iconColor); let markdownRendered = DomPurify.sanitize(md.render(props.message)); return ( -
+
{icon}
diff --git a/src/interface/web/app/components/loading/loading.tsx b/src/interface/web/app/components/loading/loading.tsx index 97f8ade3..650011d7 100644 --- a/src/interface/web/app/components/loading/loading.tsx +++ b/src/interface/web/app/components/loading/loading.tsx @@ -16,7 +16,7 @@ interface InlineLoadingProps { export function InlineLoading(props: InlineLoadingProps) { return ( ) }