@geolonia/embed 2.1.5 → 2.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geolonia/embed",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "Geolonia embed JS API",
5
5
  "main": "dist/embed.js",
6
6
  "types": "src/embed.d.ts",
@@ -48,13 +48,16 @@ class CustomAttributionControl {
48
48
  const style = document.createElement('style');
49
49
  style.textContent = `
50
50
  .maplibregl-ctrl {
51
+ font: 12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;
51
52
  clear: both;
52
53
  pointer-events: auto;
53
54
  transform: translate(0);
54
55
  }
56
+
55
57
  .maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus {
56
58
  box-shadow: 0 0 2px 2px #0096ff
57
59
  }
60
+
58
61
  .maplibregl-ctrl.maplibregl-ctrl-attrib {
59
62
  background-color: hsla(0,0%,100%,.5);
60
63
  margin: 0;
@@ -66,15 +69,17 @@ class CustomAttributionControl {
66
69
  background-color: #fff;
67
70
  border-radius: 12px;
68
71
  box-sizing: content-box;
69
- margin: 10px;
70
72
  min-height: 20px;
71
73
  padding: 2px 24px 2px 0;
72
- position: relative
74
+ position: relative;
75
+ margin: 10px 10px 10px auto;
76
+ width: 0;
73
77
  }
74
78
 
75
79
  .maplibregl-ctrl-attrib.maplibregl-compact-show {
76
80
  padding: 2px 28px 2px 8px;
77
- visibility: visible
81
+ visibility: visible;
82
+ width: auto;
78
83
  }
79
84
 
80
85
  .maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show {