@panoramax/web-viewer 4.0.3-develop-503c9f25 → 4.0.3-develop-d48b09a7

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": "@panoramax/web-viewer",
3
- "version": "4.0.3-develop-503c9f25",
3
+ "version": "4.0.3-develop-d48b09a7",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -33,6 +33,9 @@ export default class Tabs extends LitElement {
33
33
  align-items: stretch;
34
34
  overflow-x: auto;
35
35
  touch-action: pan-x;
36
+ position: sticky;
37
+ top: 0;
38
+ background: white;
36
39
  }
37
40
  nav ::slotted(*) {
38
41
  color: var(--grey-dark);
@@ -26,18 +26,16 @@ export default class PictureLegend extends LitElement {
26
26
  /** @private */
27
27
  static styles = [placeholder, panel, hidden, css`
28
28
  :host {
29
- overflow-y: auto;
30
- overflow-x: hidden;
31
29
  display: flex;
32
30
  flex-direction: column;
33
31
  margin: 0;
34
32
  font-family: var(--font-family);
33
+ flex-wrap: nowrap;
35
34
  }
36
35
 
37
36
  @media screen and (min-width: 576px) {
38
37
  :host {
39
38
  max-height: 70vh;
40
- width: 30vw;
41
39
  }
42
40
  }
43
41
 
@@ -48,6 +46,7 @@ export default class PictureLegend extends LitElement {
48
46
  align-items: center;
49
47
  margin: 10px 10px 5px 10px;
50
48
  justify-content: space-between;
49
+ flex: 1;
51
50
  }
52
51
 
53
52
  .headline-buttons {
@@ -95,6 +94,7 @@ export default class PictureLegend extends LitElement {
95
94
  display: block;
96
95
  margin-top: 5px;
97
96
  max-width: 100%;
97
+ flex: 1;
98
98
  }
99
99
  #pic-legend-expand::part(btn) {
100
100
  border-radius: 10px;
@@ -104,9 +104,11 @@ export default class PictureLegend extends LitElement {
104
104
 
105
105
  /* Details block */
106
106
  pnx-picture-metadata {
107
- margin: 5px 10px 10px;
107
+ margin: 5px 10px;
108
108
  display: block;
109
109
  box-sizing: border-box;
110
+ flex: 1;
111
+ overflow-y: auto;
110
112
  }
111
113
 
112
114
  /* Details actions */
@@ -117,6 +119,7 @@ export default class PictureLegend extends LitElement {
117
119
  border-bottom-right-radius: 10px;
118
120
  gap: 5px;
119
121
  flex-wrap: wrap;
122
+ flex: 1;
120
123
  }
121
124
 
122
125
  /* More options menu */
@@ -15,6 +15,7 @@ import { faTags } from "@fortawesome/free-solid-svg-icons/faTags";
15
15
  import { faSvg, titles, textarea, hidden } from "../styles";
16
16
  import { createWebComp } from "../../utils/widgets";
17
17
  import { getGPSPrecision } from "../../utils/picture";
18
+ import { PanoramaxMetaCatalogURL } from "../../utils/services";
18
19
  import {
19
20
  getGrade, QUALITYSCORE_GPS_VALUES, QUALITYSCORE_RES_360_VALUES,
20
21
  QUALITYSCORE_RES_FLAT_VALUES, QUALITYSCORE_POND_GPS, QUALITYSCORE_POND_RES
@@ -377,11 +378,21 @@ export default class PictureMetadata extends LitElement {
377
378
  },
378
379
  this._meta?.origInstance && {
379
380
  title: this._parent?._t.pnx.metadata_general_instance,
380
- content: html`<strong><a href=${this._meta.origInstance.href+window.location.search} target="_blank">
381
- ${this._meta.origInstance.instance_name || this._meta.origInstance.href.replace(/^http.?:\/\//, "")}
382
- </a></strong>`
381
+ content: html`<strong>
382
+ <a href=${this._meta.origInstance.href+window.location.search} target="_blank" style="text-decoration: none">
383
+ <img
384
+ src=${PanoramaxMetaCatalogURL()+"/api/instances/"+this._meta.origInstance.instance_name+"/logo"}
385
+ style="height: 30px; max-width: 150px; vertical-align: middle"
386
+ alt=""
387
+ />
388
+ <span style="text-decoration: underline">
389
+ ${this._meta.origInstance.instance_name || this._meta.origInstance.href.replace(/^http.?:\/\//, "")}
390
+ </span>
391
+ </a>
392
+ </strong>`
383
393
  }
384
394
  ];
395
+ console.log("instance", this._meta.origInstance);
385
396
 
386
397
  return html`<pnx-tabs>
387
398
  ${this._toTab( // General
@@ -37,7 +37,7 @@ export default class Legend extends LitElement {
37
37
  .pnx-panel[part="panel"] {
38
38
  border-radius: 10px;
39
39
  position: relative;
40
- max-width: 80vw;
40
+ max-width: 450px;
41
41
  z-index: 121; /* To appear above mini component */
42
42
  min-width: unset;
43
43
  }
@@ -12,6 +12,14 @@ export function PanoramaxPresetsURL() {
12
12
  return "https://presets.panoramax.fr";
13
13
  }
14
14
 
15
+ /**
16
+ * Panoramax meta-catalog URL
17
+ * @returns {string} The metacatalog URL
18
+ */
19
+ export function PanoramaxMetaCatalogURL() {
20
+ return "https://explore.panoramax.fr";
21
+ }
22
+
15
23
  /**
16
24
  * Temaki icons URL
17
25
  * @param {string} [iconName] The icon name to insert in URL