commit d51b2767bca867600c27a105f4d4a7f12a37345e parent b1162804f92fc9fb2b6feeb6e6ef07c76d99faa2 Author: Brian Graham <brian@buildingbetterteams.de> Date: Fri, 3 Apr 2026 20:25:04 +0200 Fix inner iframe height in artifact preview Set html and body to height:100% in the srcdoc wrapper so the inner iframe fills the full 70vh of the outer iframe. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Diffstat:
| M | dashboard/src/components/RunDetail.tsx | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dashboard/src/components/RunDetail.tsx b/dashboard/src/components/RunDetail.tsx @@ -240,7 +240,7 @@ export default function RunDetail({ run, transcriptLines, axisValues }: RunDetai </a> </div> <iframe - 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>`} + srcDoc={`<!DOCTYPE html><html style="height:100%"><head><meta charset="UTF-8"></head><body style="margin:0;height:100%"><iframe src="${artifactUrl}" style="width:100%;height:100%;border:none" sandbox="allow-scripts"></iframe></body></html>`} style={{ width: "100%", height: "70vh",