mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
fix: frontend for <think> tags conflicting with original <details> tags (#14039)
This commit is contained in:
@@ -68,6 +68,9 @@ export const ThinkBlock = ({ children, ...props }: any) => {
|
||||
const displayContent = removeEndThink(children)
|
||||
const { t } = useTranslation()
|
||||
|
||||
if (!(props['data-think'] ?? false))
|
||||
return (<details {...props}>{children}</details>)
|
||||
|
||||
return (
|
||||
<details {...(!isComplete && { open: true })} className="group">
|
||||
<summary className="text-gray-500 font-bold list-none pl-2 flex items-center cursor-pointer select-none whitespace-nowrap">
|
||||
|
||||
Reference in New Issue
Block a user