@@ -372,7 +372,7 @@ export default function ChatPage() {
artifactPanelOpen
? fullscreen
? "ml-0 w-full"
- : "w-[70%]"
+ : "w-[50%]"
: "w-0",
)}
>
diff --git a/frontend/src/components/ai-elements/artifact.tsx b/frontend/src/components/ai-elements/artifact.tsx
index 633b4470..387580d1 100644
--- a/frontend/src/components/ai-elements/artifact.tsx
+++ b/frontend/src/components/ai-elements/artifact.tsx
@@ -140,7 +140,7 @@ export const ArtifactContent = ({
className,
...props
}: ArtifactContentProps) => (
-
+
);
diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
index 7eca699e..437ee6ac 100644
--- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
+++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
@@ -154,7 +154,8 @@ export function ArtifactFileDetail({
}
}, [threadId, filepath, isInstalling]);
return (
-
+ // 给滚动遮挡头部定位relative
+
{previewable && (
@@ -387,7 +388,9 @@ export function ArtifactFileDetail({
-
+
+ {/* 遮挡多余的滚动顶部 */}
+
{previewable &&
viewMode === "preview" &&
(language === "markdown" || language === "html") && (
@@ -399,7 +402,7 @@ export function ArtifactFileDetail({
)}
{isCodeFile && viewMode === "code" && (