Back to mini-nostr-saf
SOURCE / PINNED RELEASE

Made of little things.

mini-nostr-saf

Release
72c0506a4a1b…
Author-recorded commit
cec3876ccbdc…
License
LICENSE
Author’s source reference
nostr://npub1whs094x2p7qshzqn77uwm0kx0826f8xdad5ppqet7w9jr6ay5scs99c7wj/wss%3A%2F%2Fgit.napplet.soy%2F/n-599618f6842

Archive hash verified: e3147c802508002b…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

src/space-shim.tsx
/**
 * Local replacements for `@hatch/space-sdk/client` (not available in napplets).
 */
import type { CSSProperties } from "react";

/** Minimal top safe-area scrim (replaces the SDK's SafeAreaTopScrim). */
export function SafeAreaTopScrim({ backgroundColor }: { backgroundColor?: string }) {
  const style: CSSProperties = {
    position: "sticky",
    top: 0,
    height: "env(safe-area-inset-top, 0px)",
    backgroundColor,
    zIndex: 50,
  };
  return <div style={style} aria-hidden="true" />;
}