|
@@ -60,6 +60,7 @@ export type ChatProps = {
|
|
|
hideProcessDetail?: boolean
|
|
|
hideLogModal?: boolean
|
|
|
themeBuilder?: ThemeBuilder
|
|
|
+ noSpacing?: boolean
|
|
|
}
|
|
|
|
|
|
const Chat: FC<ChatProps> = ({
|
|
@@ -89,6 +90,7 @@ const Chat: FC<ChatProps> = ({
|
|
|
hideProcessDetail,
|
|
|
hideLogModal,
|
|
|
themeBuilder,
|
|
|
+ noSpacing,
|
|
|
}) => {
|
|
|
const { t } = useTranslation()
|
|
|
const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal, showAgentLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({
|
|
@@ -197,7 +199,7 @@ const Chat: FC<ChatProps> = ({
|
|
|
{chatNode}
|
|
|
<div
|
|
|
ref={chatContainerInnerRef}
|
|
|
- className={`w-full ${chatContainerInnerClassName}`}
|
|
|
+ className={classNames('w-full', !noSpacing && 'px-8', chatContainerInnerClassName)}
|
|
|
>
|
|
|
{
|
|
|
chatList.map((item, index) => {
|
|
@@ -268,6 +270,7 @@ const Chat: FC<ChatProps> = ({
|
|
|
speechToTextConfig={config?.speech_to_text}
|
|
|
onSend={onSend}
|
|
|
theme={themeBuilder?.theme}
|
|
|
+ noSpacing={noSpacing}
|
|
|
/>
|
|
|
)
|
|
|
}
|