Skip to content

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

Desktop: the loading cover is opaque, whatever the Appearance's opacity

zohayrslilehfed4a6c9ce3b
diff --git a/source/client/view/components/loading.tsx b/source/client/view/components/loading.tsx
index 6b5872d..584ad94 100644
--- a/source/client/view/components/loading.tsx
+++ b/source/client/view/components/loading.tsx
@@ -2,7 +2,10 @@ import { Spinner, Surface, type SurfaceProps } from "@phreshos/react-ui"
type LoadingProps = Omit<SurfaceProps, "material">
-/** A complete loading surface for unresolved content. */
+/**
+ * A complete loading surface for unresolved content. It hides what is beneath it, so it is opaque
+ * whatever the Appearance's opacity.
+ */
export default function ({ className, style, children, ...props }: LoadingProps) {
const described = children !== undefined
@@ -10,6 +13,8 @@ export default function ({ className, style, children, ...props }: LoadingProps)
{...props}
+ material="opaque"
+
className={`inset-0 z-10 grid ${className ?? ""}`}
style={{ ...style, position: "absolute", borderRadius: style?.borderRadius ?? "inherit" }}