tweaking chart sizing
This commit is contained in:
parent
38a9bed8f4
commit
39864d7c31
@ -31,8 +31,10 @@ $shadow-color: #1e1e1e;
|
||||
|
||||
.chart-card {
|
||||
// width: 500px;
|
||||
width: 100%;
|
||||
max-width: max-content;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
// width: 100%;
|
||||
// max-width: max-content;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@ -50,10 +52,6 @@ $shadow-color: #1e1e1e;
|
||||
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@ -61,6 +59,10 @@ $shadow-color: #1e1e1e;
|
||||
min-width: 200px;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
.spotify-logo {
|
||||
|
@ -28,7 +28,7 @@ export let PlayCountChartCard: Vue.Component = {
|
||||
},
|
||||
template:
|
||||
`
|
||||
<div class="card info-card chart-card">
|
||||
<div class="chart-card card">
|
||||
<h1>{{ title }}</h1>
|
||||
<canvas :id="chartId"></canvas>
|
||||
<lastfm-logo :link="link" />
|
||||
@ -89,7 +89,7 @@ export let CombinedPlayCountChartCard: Vue.Component = {
|
||||
},
|
||||
template:
|
||||
`
|
||||
<div class="card info-card chart-card">
|
||||
<div class="chart-card card">
|
||||
<canvas :id="chartId"></canvas>
|
||||
<lastfm-logo :link="link" />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user