From b3823aa4e69e9dd00de46bf94b04fdf450cdb3d2 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 8 Nov 2026 10:44:20 +0000 Subject: [PATCH] Outline the viewport in yellow while it shows a partial render and in red for fallbacks and errors --- frontend/src/components/panels/Document.svelte | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/components/panels/Document.svelte b/frontend/src/components/panels/Document.svelte index b7e492421d..fb84c7121d 100644 --- a/frontend/src/components/panels/Document.svelte +++ b/frontend/src/components/panels/Document.svelte @@ -721,6 +721,11 @@ {#if isWeb && !["Error", "Panic"].includes($document.renderStatus)} Initializing Renderer… {/if} + {#if $document.renderStatus === "Partial"} +
+ {:else if ["Fallback", "Error", "Panic"].includes($document.renderStatus)} +
+ {/if} {#if $document.renderStatus === "Error"} @@ -983,6 +988,19 @@ } } + .render-status-outline { + position: absolute; + inset: 0; + // Above the error overlays so the outline frames them too + z-index: 1; + box-shadow: inset 0 0 0 1px var(--color-warning-yellow); + pointer-events: none; + + &.failed { + box-shadow: inset 0 0 0 1px var(--color-error-red); + } + } + .render-status-overlay { position: absolute; inset: 0;