mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
Fix: position of log modal (#5538)
This commit is contained in:
@@ -57,6 +57,7 @@ export type ChatProps = {
|
||||
onFeedback?: (messageId: string, feedback: Feedback) => void
|
||||
chatAnswerContainerInner?: string
|
||||
hideProcessDetail?: boolean
|
||||
hideLogModal?: boolean
|
||||
}
|
||||
const Chat: FC<ChatProps> = ({
|
||||
appData,
|
||||
@@ -83,6 +84,7 @@ const Chat: FC<ChatProps> = ({
|
||||
onFeedback,
|
||||
chatAnswerContainerInner,
|
||||
hideProcessDetail,
|
||||
hideLogModal,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal, showAgentLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({
|
||||
@@ -265,7 +267,7 @@ const Chat: FC<ChatProps> = ({
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
{showPromptLogModal && (
|
||||
{showPromptLogModal && !hideLogModal && (
|
||||
<PromptLogModal
|
||||
width={width}
|
||||
currentLogItem={currentLogItem}
|
||||
@@ -275,7 +277,7 @@ const Chat: FC<ChatProps> = ({
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{showAgentLogModal && (
|
||||
{showAgentLogModal && !hideLogModal && (
|
||||
<AgentLogModal
|
||||
width={width}
|
||||
currentLogItem={currentLogItem}
|
||||
|
||||
Reference in New Issue
Block a user