Skip to content

An open-source, self-hosted system for apps built with web technologies.

Restore Program loading spinner

zohayrslileh27ab0927ff56
diff --git a/source/client/view/desktop/window-manager/process-window.tsx b/source/client/view/desktop/window-manager/process-window.tsx
index 143c248..8a9b04a 100644
--- a/source/client/view/desktop/window-manager/process-window.tsx
+++ b/source/client/view/desktop/window-manager/process-window.tsx
@@ -169,6 +169,18 @@ export default memo(function ({ identity, record, client, title, icon, position,
/>}
+ {/* Loading keeps the iframe completely transparent. The spinner is
+ ordinary Window UI, with no backdrop or Surface behind it. */}
+ {!bare && frameLoading && !stopping && !closing && <div className="pointer-events-none absolute inset-0 z-10 grid rounded-[inherit]">
+
+ <Spinner className="m-auto size-6 text-slate-700">
+
+ <span className="sr-only">Loading</span>
+
+ </Spinner>
+
+ </div>}
+
{/* Closing is not document loading. The iframe is already absent;
only termination progress remains, without painting a backdrop. */}
{!bare && (stopping || closing) && <div className="pointer-events-none absolute inset-0 z-10 grid rounded-[inherit]">