glib-web 2.6.3 → 2.6.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/LICENSE CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/components/hr.vue CHANGED
File without changes
File without changes
@@ -57,23 +57,15 @@ export default {
57
57
  let width, height;
58
58
  const aspectRatio = image.naturalWidth / image.naturalHeight;
59
59
 
60
- console.log("FIT1");
61
-
62
60
  if (this.spec.width == "matchParent") {
63
- console.log("FIT2");
64
-
65
61
  width = "100%";
66
62
  // This breaks the image height when displayed in a badge.
67
63
  // height = `${100 / aspectRatio}%`;
68
64
  } else {
69
65
  if (this.spec.width) {
70
- console.log("FIT3");
71
-
72
66
  width = `${this.spec.width}px`;
73
67
  height = `${this.spec.width / aspectRatio}px`;
74
68
  } else if (this.spec.height) {
75
- console.log("FIT4", this.spec.height);
76
-
77
69
  width = `${this.spec.height * aspectRatio}px`;
78
70
  height = `${this.spec.height}px`;
79
71
  }
File without changes
File without changes
File without changes
File without changes
package/components/p.vue CHANGED
File without changes
@@ -58,6 +58,7 @@ export default {
58
58
  $ready() {
59
59
  const onClick = this.spec.onClick ? { onClick: this.spec.onClick } : {};
60
60
  this.customData = Object.assign(onClick, this.spec.data);
61
+ // Fix an issue where the panel doesn't get updated
61
62
  if (this.$refs.ccomp) {
62
63
  this.$refs.ccomp.$forceUpdate();
63
64
  }
@@ -29,10 +29,11 @@
29
29
  >
30
30
  <!-- Using `item.id` as key is important to make sure the item gets updated
31
31
  when dragging ends. -->
32
- <!-- TODO: This div is causing image issue -->
32
+ <!-- Use `display: contents` so this div doesn't intefere with the child's sizing behaviour. -->
33
33
  <div
34
34
  v-for="(item, index) in childViews"
35
35
  :key="item.id || index"
36
+ style="display: contents;"
36
37
  :data-dragItemId="item.id"
37
38
  >
38
39
  <glib-component :spec="item" />
@@ -1,11 +1,5 @@
1
1
  <template>
2
- <v-list
3
- :two-line="twoLine"
4
- :three-line="threeLine"
5
- class="py-0"
6
- :class="$classes()"
7
- :style="$styles()"
8
- >
2
+ <v-list class="py-0" :class="$classes()" :style="$styles()">
9
3
  <div ref="topAnchor">
10
4
  <div v-if="prevPageUrl" class="py-3 px-4">
11
5
  Loading...
@@ -88,30 +82,6 @@ export default {
88
82
  dragSupport: null
89
83
  };
90
84
  },
91
- computed: {
92
- twoLine() {
93
- for (const section of this.sections) {
94
- const rows = section.rows || [];
95
- for (const row of rows) {
96
- if (row.subtitle) {
97
- return true;
98
- }
99
- }
100
- }
101
- return false;
102
- },
103
- threeLine() {
104
- for (const section of this.sections) {
105
- const rows = section.rows || [];
106
- for (const row of rows) {
107
- if (row.subsubtitle) {
108
- return true;
109
- }
110
- }
111
- }
112
- return false;
113
- }
114
- },
115
85
  methods: {
116
86
  $ready() {
117
87
  this.sections = this.spec.sections || [];
@@ -1,4 +1,5 @@
1
1
  <template>
2
+ <!-- Use `display: contents` so this div doesn't intefere with the child's sizing behaviour. -->
2
3
  <div style="display: contents;">
3
4
  <!-- <common-responsive v-if="!hoverViewsSpec" :spec="spec" /> -->
4
5
  <v-menu
package/keys.js CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
File without changes
package/styles/test.sass CHANGED
File without changes
package/styles/test.scss CHANGED
File without changes
File without changes
package/utils/dom.js CHANGED
File without changes
package/utils/settings.js CHANGED
File without changes
package/utils/storage.js CHANGED
File without changes
package/utils/url.js CHANGED
File without changes