@jackbernnie/hiyf 0.3.6 → 0.3.7
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.
|
@@ -48,7 +48,7 @@ function AerialEmbed({
|
|
|
48
48
|
rel: "noreferrer",
|
|
49
49
|
title,
|
|
50
50
|
"aria-label": `${title} \u2014 open satellite view`,
|
|
51
|
-
className: "relative block w-full overflow-hidden rounded-lg bg-muted",
|
|
51
|
+
className: "relative block w-full shrink-0 overflow-hidden rounded-lg bg-muted",
|
|
52
52
|
style: { height: AERIAL_HEIGHT },
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ jsx("div", { className: "absolute left-1/2 top-1/2", children: tiles.map((tile) => /* @__PURE__ */ jsx(
|
|
@@ -107,7 +107,7 @@ function MapEmbed({
|
|
|
107
107
|
const half = Math.min(20, Math.max(4e-3, 40 / 2 ** clampedZoom));
|
|
108
108
|
const bbox = `${lon - half},${lat - half},${lon + half},${lat + half}`;
|
|
109
109
|
const src = `https://www.openstreetmap.org/export/embed.html?bbox=${bbox}&layer=mapnik&marker=${lat},${lon}`;
|
|
110
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, children: /* @__PURE__ */ jsx(
|
|
110
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full shrink-0 overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, children: /* @__PURE__ */ jsx(
|
|
111
111
|
"iframe",
|
|
112
112
|
{
|
|
113
113
|
src,
|
package/package.json
CHANGED