Skip to content

Commit 82a3cc3

Browse files
authored
Merge pull request #620 from pandasamanvaya/nft_history
Fixed chart resolution problem
2 parents b47e1fd + aac9df7 commit 82a3cc3

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"apollo-boost": "^0.4.9",
3737
"axios": "^0.21.1",
3838
"buefy": "^0.9.8",
39-
"echarts": "^5.1.1",
39+
"echarts": "^5.1.2",
4040
"emoji-unicode": "^2.0.1",
4141
"file-saver": "^2.0.5",
4242
"freezeframe": "^5.0.2",

src/components/rmrk/Gallery/GalleryItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default class GalleryItem extends Vue {
237237
// }
238238
} catch (e) {
239239
showNotification(`${e}`, notificationTypes.warn);
240-
console.warn(e);
240+
// console.warn(e);
241241
}
242242
243243
this.isLoading = false;
@@ -259,7 +259,7 @@ export default class GalleryItem extends Vue {
259259
if (this.meta.animation_url && !this.mimeType) {
260260
const { headers } = await axios.head(this.meta.animation_url);
261261
this.mimeType = headers['content-type'];
262-
console.log(this.mimeType)
262+
// console.log(this.mimeType)
263263
const mediaType = resolveMedia(this.mimeType);
264264
this.imageVisible = ![MediaType.VIDEO, MediaType.MODEL, MediaType.IFRAME, MediaType.OBJECT].some(
265265
t => t === mediaType

src/components/rmrk/Gallery/PriceChart.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class PriceChart extends Vue{
3333
// console.log(document.documentElement.clientWidth);
3434
const x = document.documentElement.clientWidth;
3535
if(x > 769)
36-
this.Chart.resize({width: Math.min(x/2.5, 400), height: 400});
36+
this.Chart.resize({width: Math.min(x/2.7, 400), height: 400});
3737
else
3838
this.Chart.resize({width: x, height: 400});
3939
}
@@ -105,7 +105,10 @@ export default class PriceChart extends Vue{
105105
);
106106
const x = document.documentElement.clientWidth;
107107
108-
this.Chart.resize({width: x/3, height: 400});
108+
if(x > 769)
109+
this.Chart.resize({width: Math.min(x/2.7, 400), height: 400});
110+
else
111+
this.Chart.resize({width: x, height: 400});
109112
}
110113
111114
// protected createDate(){

0 commit comments

Comments
 (0)