@abi-software/gallery 0.3.0-beta.1 → 0.3.0-beta.4

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": "@abi-software/gallery",
3
- "version": "0.3.0-beta.1",
3
+ "version": "0.3.0-beta.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/hsorby/mapcore-gallery.git"
@@ -21,11 +21,11 @@
21
21
  </el-tooltip>
22
22
  </div>
23
23
  <div v-if="showCardDetails" class="details">
24
- <p>
24
+ <p v-if="!data.hideType">
25
25
  <b>{{ data.type }}</b>
26
26
  </p>
27
27
  <el-popover ref="galleryPopover" :content="data.title" placement="top" trigger="hover" popper-class="gallery-popper" />
28
- <p class="title" v-popover:galleryPopover>
28
+ <p v-if="!data.hideTitle" class="title" v-popover:galleryPopover>
29
29
  {{ data.title }}
30
30
  </p>
31
31
  <el-button class="button" @click.prevent="cardClicked"> View {{ data.type }}</el-button>
@@ -194,7 +194,9 @@ export default {
194
194
  </script>
195
195
 
196
196
  <style scoped>
197
- .button {
197
+ .button,
198
+ .button:hover,
199
+ .button:focus {
198
200
  z-index: 10;
199
201
  font-family: Asap;
200
202
  font-size: 14px;
@@ -154,7 +154,7 @@ export default {
154
154
  canShowIndicatorBar() {
155
155
  const indicatorWidth = convertRemToPixels(1)
156
156
  const indicatorAllowance = this.maxWidth / (indicatorWidth * this.itemCount)
157
- return this.showIndicatorBar && indicatorAllowance > 0.1
157
+ return this.showIndicatorBar && indicatorAllowance > 0.1 && this.itemCount > 1
158
158
  },
159
159
  valueAdjustment() {
160
160
  const halfWindow = Math.floor(this.numberOfItemsVisible / 2)
@@ -81,7 +81,7 @@ export default {
81
81
  let item = items.find(x => x.id === info.id)
82
82
  const name = response.name
83
83
  if (name) {
84
- this.$set(item, 'title', name.substring(0, name.lastIndexOf('.')))
84
+ item.title = name
85
85
  }
86
86
  },
87
87
  reason => {
@@ -92,9 +92,6 @@ export default {
92
92
  ) {
93
93
  info.fetchAttempts += 1
94
94
  this.getImageInfoFromBiolucida(apiEndpoint, items, info)
95
- } else {
96
- let item = items.find(x => x.id === info.id)
97
- this.$set(item, 'thumbnail', this.defaultImg)
98
95
  }
99
96
 
100
97
  return Promise.reject('Maximum iterations reached.')