mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-20 12:54:45 +08:00
feat: auto expand in demo mode
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Code2Icon,
|
||||
CopyIcon,
|
||||
DownloadIcon,
|
||||
EyeIcon,
|
||||
SquareArrowOutUpRightIcon,
|
||||
XIcon,
|
||||
} from "lucide-react";
|
||||
@@ -31,6 +33,8 @@ import { useI18n } from "@/core/i18n/hooks";
|
||||
import { checkCodeFile, getFileName } from "@/core/utils/files";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Tooltip } from "../tooltip";
|
||||
|
||||
import { useArtifacts } from "./context";
|
||||
|
||||
export function ArtifactFileDetail({
|
||||
@@ -115,8 +119,16 @@ export function ArtifactFileDetail({
|
||||
setViewMode(value as "code" | "preview")
|
||||
}
|
||||
>
|
||||
<ToggleGroupItem value="code">Code</ToggleGroupItem>
|
||||
<ToggleGroupItem value="preview">Preview</ToggleGroupItem>
|
||||
<Tooltip content={t.common.code}>
|
||||
<ToggleGroupItem value="code">
|
||||
<Code2Icon />
|
||||
</ToggleGroupItem>
|
||||
</Tooltip>
|
||||
<Tooltip content={t.common.preview}>
|
||||
<ToggleGroupItem value="preview">
|
||||
<EyeIcon />
|
||||
</ToggleGroupItem>
|
||||
</Tooltip>
|
||||
</ToggleGroup>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user