@mappedin/viewer 0.15.2 → 0.15.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.15.3](https://github.com/MappedIn/viewer/compare/viewer-v0.15.2...viewer-v0.15.3) (2024-02-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **MKR-967:** make sure metadata card fills width on mobile ([#136](https://github.com/MappedIn/viewer/issues/136)) ([fffe7e6](https://github.com/MappedIn/viewer/commit/fffe7e6d79197deb13dff9df6d8a75b62edba805))
9
+
3
10
  ## [0.15.2](https://github.com/MappedIn/viewer/compare/viewer-v0.15.1...viewer-v0.15.2) (2024-02-26)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -84097,20 +84097,32 @@ const Vat = Si.div`
84097
84097
  },
84098
84098
  children: [
84099
84099
  /* @__PURE__ */ Ne.jsx("div", { style: { display: "flex", flex: "1 1 100%", alignItems: "flex-end" }, children: /* @__PURE__ */ Ne.jsx(tQ, { text: i.data.mapName, style: { margin: "20px 16px" } }) }),
84100
- e.metadataCardVisible ? /* @__PURE__ */ Ne.jsx("div", { style: { position: "absolute", bottom: 70, padding: 10 }, children: (t = i.selectedPlaces) == null ? void 0 : t.map((s) => $n.is(s) ? null : /* @__PURE__ */ Ne.jsx(
84101
- BQ,
84100
+ e.metadataCardVisible ? /* @__PURE__ */ Ne.jsx(
84101
+ "div",
84102
84102
  {
84103
- name: T4(s),
84104
- description: s.description,
84105
- links: s.links,
84106
- imageURLs: s.images.map((l) => l.url),
84107
- onRequestClose: e.handleMetadataCardClose,
84108
- onDirectionsClick: e.handleDirectionsButtonClick,
84109
- disableDirectionsButton: e.directionsButtonDisabled,
84110
- isMakerPreview: i.isMakerPreview
84111
- },
84112
- s.id
84113
- )) }) : null,
84103
+ style: {
84104
+ position: "absolute",
84105
+ bottom: 70,
84106
+ padding: 10,
84107
+ width: "100%",
84108
+ boxSizing: "border-box"
84109
+ },
84110
+ children: (t = i.selectedPlaces) == null ? void 0 : t.map((s) => $n.is(s) ? null : /* @__PURE__ */ Ne.jsx(
84111
+ BQ,
84112
+ {
84113
+ name: T4(s),
84114
+ description: s.description,
84115
+ links: s.links,
84116
+ imageURLs: s.images.map((l) => l.url),
84117
+ onRequestClose: e.handleMetadataCardClose,
84118
+ onDirectionsClick: e.handleDirectionsButtonClick,
84119
+ disableDirectionsButton: e.directionsButtonDisabled,
84120
+ isMakerPreview: i.isMakerPreview
84121
+ },
84122
+ s.id
84123
+ ))
84124
+ }
84125
+ ) : null,
84114
84126
  /* @__PURE__ */ Ne.jsxs(Jat, { direction: "row", spacing: 12, children: [
84115
84127
  /* @__PURE__ */ Ne.jsx(
84116
84128
  r8e,
@@ -84180,7 +84192,7 @@ const Vat = Si.div`
84180
84192
  }
84181
84193
  }, d8e = () => {
84182
84194
  const i = document.createElement("meta");
84183
- i.name = "app-version", i.content = "0.15.2", document.head.appendChild(i);
84195
+ i.name = "app-version", i.content = "0.15.3", document.head.appendChild(i);
84184
84196
  let e = document.querySelector("meta[name=viewport]");
84185
84197
  e == null && (e = document.createElement("meta"), e.name = "viewport", document.head.appendChild(e)), e.content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no";
84186
84198
  }, p8e = (i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",