From 5dc40a9adeac285c8e954cb4d581471919b00989 Mon Sep 17 00:00:00 2001 From: Henry Li Date: Sat, 17 Jan 2026 15:19:53 +0800 Subject: [PATCH] feat: add `open in new window` --- .../workspace/artifacts/artifact-file-detail.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx index 2fc8e87..467e7df 100644 --- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx +++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx @@ -1,4 +1,9 @@ -import { CopyIcon, DownloadIcon, XIcon } from "lucide-react"; +import { + CopyIcon, + DownloadIcon, + SquareArrowOutUpRightIcon, + XIcon, +} from "lucide-react"; import { useMemo } from "react"; import { toast } from "sonner"; @@ -50,6 +55,13 @@ export function ArtifactFileDetail({
+ + + {isCodeFile && (