fix: HTML artifact preview renders blank in preview mode (#876)
The condition guarding ArtifactFilePreview only allowed markdown files through, which prevented HTML files from reaching the preview component. Added `language === "html"` to the condition so HTML artifacts render correctly in preview mode. Fixes #873 Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
67dbb10c2a
commit
9f74589d09
|
|
@ -234,8 +234,7 @@ export function ArtifactFileDetail({
|
||||||
<ArtifactContent className="p-0">
|
<ArtifactContent className="p-0">
|
||||||
{previewable &&
|
{previewable &&
|
||||||
viewMode === "preview" &&
|
viewMode === "preview" &&
|
||||||
language === "markdown" &&
|
(language === "markdown" || language === "html") && (
|
||||||
content && (
|
|
||||||
<ArtifactFilePreview
|
<ArtifactFilePreview
|
||||||
filepath={filepath}
|
filepath={filepath}
|
||||||
threadId={threadId}
|
threadId={threadId}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue