Skip to content

See how your app actually fits together. An interactive, plain-English map of your codebase, drawn by Claude or Codex.

fix: render cards in Safari/WebKit

PaulMagos19ad9d7abc0d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 495ee5b..a16ca6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## Unreleased
+
+- **Safari fix:** cards now show up in Safari (and every browser on iPhone/iPad). Before, only the connection lines were drawn and card text appeared in the top-left corner.
+
## 0.1.2 (2026-10-27)
- **Floorplan Cloud waitlist:** once a map has been open for two minutes, a corner card asks, once, whether you'd like an email when Floorplan Cloud (shared, synced team maps) launches. Nothing is sent unless you click **Notify me**, and then only your email and "just me" or "with my team". **Use my Claude email** fills in your Claude account's address, and you see it before anything is sent. **Don't ask again**, or `FLOORPLAN_NO_PROMPTS=1`, turns it off. See [Privacy and security](docs/privacy-and-security.md#floorplan-cloud-waitlist).
diff --git a/skills/floorplan/assets/viewer.html b/skills/floorplan/assets/viewer.html
index d9a090b..fe38dfe 100644
--- a/skills/floorplan/assets/viewer.html
+++ b/skills/floorplan/assets/viewer.html
@@ -389,6 +389,13 @@ body.no-panel #panel-resize { opacity: 0; pointer-events: none; }
.group-h:first-of-type { margin-top: 2px; }
.group-h .gd { color: var(--text-4); font-weight: 400; font-size: 12px; }
#legend .tech { border-top: 1px solid var(--hair); margin-top: 4px; padding-top: 4px; }
+/* Safari/WebKit: HTML inside <foreignObject> that gets its own render layer (position, overflow clip,
+ transform, opacity, animation) is painted at the page origin, ignoring the SVG transform. Keep cards layer-free there. */
+html.wk .node foreignObject { overflow: hidden; }
+html.wk .card, html.wk .card * { position: static !important; transform: none !important; animation: none !important; transition: none !important; will-change: auto !important; }
+html.wk .card { overflow: visible; }
+html.wk svg.dim .node:not(.hl) .card > * { opacity: 1; }
+html.wk svg.dim .node:not(.hl) foreignObject { opacity: .28; }
</style>
</head>
<body>
@@ -442,6 +449,7 @@ body.no-panel #panel-resize { opacity: 0; pointer-events: none; }
<div class="hint"><span><span class="kbd">↑↓</span> navigate</span><span><span class="kbd">↵</span> open</span><span><span class="kbd">esc</span> close</span></div>
</div></div>
<!--__ELK_SCRIPT__-->
+<script>if (/AppleWebKit/.test(navigator.userAgent) && !/Chrome|Chromium|Edg|OPR/.test(navigator.userAgent)) document.documentElement.classList.add('wk');</script>
<script>window.FLOORPLAN = /*__FLOORPLAN_DATA__*/null;</script>
<script>/*__GRAPH_QUERY__*/</script>
<script>