From 86722a09a7cb5892bd6f1402aedc9f866ba200f2 Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Fri, 3 Apr 2026 11:26:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(artifact)=EF=BC=9AArtifact=20=E9=A2=84?= =?UTF-8?q?=E8=A7=88=20iframe=20=E5=A2=9E=E5=8A=A0=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=B8=AD=E8=BD=AC=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifacts/artifact-file-detail.tsx | 74 ++++++++++++++----- 1 file changed, 55 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx index b6b52ac8..cfd4e5db 100644 --- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx +++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx @@ -9,6 +9,7 @@ import { useEffect, useMemo, useState, + type ComponentProps, type HTMLAttributes, } from "react"; import { toast } from "sonner"; @@ -477,7 +478,7 @@ export function ArtifactFileDetail({ )} {isCodeFile && viewMode === "code" && ( -
+
)} {!isCodeFile && ( -
-