mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 12:24:46 +08:00
feat: adjust message group layout
This commit is contained in:
@@ -64,7 +64,7 @@ export const ChainOfThought = memo(
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ChainOfThoughtContext.Provider value={chainOfThoughtContext}>
|
<ChainOfThoughtContext.Provider value={chainOfThoughtContext}>
|
||||||
<div className={cn("not-prose space-y-4", className)} {...props}>
|
<div className={cn("not-prose", className)} {...props}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</ChainOfThoughtContext.Provider>
|
</ChainOfThoughtContext.Provider>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export function MessageGroup({
|
|||||||
const { label, icon } = describeStep(lastStep);
|
const { label, icon } = describeStep(lastStep);
|
||||||
return (
|
return (
|
||||||
<ChainOfThought
|
<ChainOfThought
|
||||||
className={cn("w-full rounded-lg border px-4 pt-4", className)}
|
className={cn("w-full rounded-lg border px-3 py-2", className)}
|
||||||
defaultOpen={false}
|
defaultOpen={false}
|
||||||
open={open}
|
open={open}
|
||||||
onOpenChange={setOpen}
|
onOpenChange={setOpen}
|
||||||
@@ -79,7 +79,7 @@ export function MessageGroup({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ChainOfThoughtHeader>
|
</ChainOfThoughtHeader>
|
||||||
<ChainOfThoughtContent className="pb-4">
|
<ChainOfThoughtContent className="pb-2">
|
||||||
{steps.map((step) =>
|
{steps.map((step) =>
|
||||||
step.type === "reasoning" ? (
|
step.type === "reasoning" ? (
|
||||||
<ChainOfThoughtStep
|
<ChainOfThoughtStep
|
||||||
@@ -224,7 +224,7 @@ function ToolCall({
|
|||||||
label={
|
label={
|
||||||
description ?? (
|
description ?? (
|
||||||
<div>
|
<div>
|
||||||
Use tool <b>{name}</b>
|
Use "<span className="font-bold">{name}</span>" tool
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user