@broberg/bodymap 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/three.js CHANGED
@@ -663,7 +663,17 @@ function BodyMap3D(props) {
663
663
  inset: 0,
664
664
  zIndex: 2147483e3,
665
665
  background: chrome.panelBg,
666
- padding: 12,
666
+ // F052.27 — a fixed inset:0 surface in a standalone/Capacitor
667
+ // webview covers the STATUS BAR too, so a control laid out at the
668
+ // top lands on the clock and the battery. Measured by fd-sundhed
669
+ // on a real iPhone: the owner could not read the button or get
670
+ // out, and Escape does not exist on a phone. Every side gets its
671
+ // safe-area inset, bottom included — the home indicator covers
672
+ // content just as effectively.
673
+ paddingTop: "calc(12px + env(safe-area-inset-top))",
674
+ paddingBottom: "calc(12px + env(safe-area-inset-bottom))",
675
+ paddingLeft: "calc(12px + env(safe-area-inset-left))",
676
+ paddingRight: "calc(12px + env(safe-area-inset-right))",
667
677
  display: "flex",
668
678
  flexDirection: "column",
669
679
  overflow: "auto"
@@ -684,8 +694,14 @@ function BodyMap3D(props) {
684
694
  "aria-pressed": isFullscreen,
685
695
  "aria-label": isFullscreen ? UI.collapse ?? "Close" : UI.expand ?? "Expand",
686
696
  onClick: () => setFullscreen(!isFullscreen),
687
- style: { ...btn, color: chrome.text, borderColor: chrome.border, background: chrome.panelBg },
688
- children: isFullscreen ? UI.collapse ?? "Close" : UI.expand ?? "Expand"
697
+ style: {
698
+ ...btn,
699
+ color: chrome.text,
700
+ borderColor: chrome.border,
701
+ background: chrome.panelBg,
702
+ ...isFullscreen ? { width: 40, height: 40, padding: 0, fontSize: 22, lineHeight: 1 } : null
703
+ },
704
+ children: isFullscreen ? "\xD7" : UI.expand ?? "Expand"
689
705
  }
690
706
  ) }),
691
707
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 18, alignItems: "flex-start", flexWrap: "wrap", ...isFullscreen ? { flex: "1 1 auto", minHeight: 0 } : null }, children: [