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

Commit c6dabd3

Browse files
committed
feat: bigger chart on mobile
1 parent c1652a3 commit c6dabd3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
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 tablet {
215+
.chart-container {
216+
height: 656px;
217+
}
218+
}
219+
</style>

0 commit comments

Comments
 (0)