commit 69eeaaae9396ca9a11b85aad0d572b93b330af9c
parent 93f01c19d78a76b73809fa2e6e1d4fd2fefd448e
Author: Brian Graham <brian@buildingbetterteams.de>
Date: Fri, 3 Apr 2026 20:14:30 +0200
Fix UTF-8 encoding in artifact iframe
Wrap artifact iframe in srcdoc with meta charset=UTF-8 to prevent
nginx-injected footer from breaking unicode characters.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dashboard/src/components/RunDetail.tsx b/dashboard/src/components/RunDetail.tsx
@@ -218,15 +218,15 @@ export default function RunDetail({ run, transcriptLines, axisValues }: RunDetai
Result Preview
</div>
<iframe
- src={artifactUrl}
+ srcDoc={`<!DOCTYPE html><html><head><meta charset="UTF-8"></head><body style="margin:0;overflow:hidden"><iframe src="${artifactUrl}" style="width:100%;height:100%;border:none" sandbox="allow-scripts"></iframe></body></html>`}
style={{
width: "100%",
height: "70vh",
border: "none",
background: "#fff",
}}
- sandbox="allow-scripts"
- title="Tetris game preview"
+ sandbox="allow-scripts allow-same-origin"
+ title="Result preview"
/>
</div>
)}