Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 922fde6

Browse files
committed
Merge branch 'main-nuxt' into feat/nft-item-nav
2 parents 5a44894 + 962d507 commit 922fde6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

components/rmrk/Gallery/CollectionPriceChart.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77
<b-button type="is-primary" @click="resetZoom">Reset zoom</b-button>
88
</div>
9-
<div class="mt-5">
9+
<div class="chart-container mt-5">
1010
<canvas
1111
id="collectionPriceChart"
1212
@mousedown="onCanvasMouseDown"
@@ -115,6 +115,7 @@ export default class PriceChart extends mixins(ChainMixin) {
115115
],
116116
},
117117
options: {
118+
maintainAspectRatio: false,
118119
plugins: {
119120
annotation: {
120121
annotations: {
@@ -201,3 +202,18 @@ export default class PriceChart extends mixins(ChainMixin) {
201202
}
202203
}
203204
</script>
205+
206+
<style scoped lang="scss">
207+
@import "bulma/sass/utilities/mixins.sass";
208+
209+
.chart-container {
210+
position: relative;
211+
height: 400px;
212+
width: 100%
213+
}
214+
@include desktop {
215+
.chart-container {
216+
height: 656px;
217+
}
218+
}
219+
</style>

components/rmrk/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const ipfsHashToUrl = (ipfsHash?: string, provider?: ProviderKeyType): st
4949
return `${resolveProvider(provider)}ipfs/${ipfsHash}`
5050
}
5151

52-
return ipfsHash
52+
return ipfsHash || ''
5353
}
5454

5555
const resolveProvider = (key: ProviderKeyType = 'kodadot'): string => ipfsProviders[key]

0 commit comments

Comments
 (0)