summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-08-24 07:18:00 +0900
committerGitHub <noreply@github.com>2018-08-24 07:18:00 +0900
commitcaf625afeee297864f84be5ff3705b96a129fd55 (patch)
tree2d9c6e57eef0199da372c7da4e06fcd02538a0de /src
parentMerge pull request #2440 from syuilo/develop (diff)
parent8.4.0 (diff)
downloadmisskey-caf625afeee297864f84be5ff3705b96a129fd55.tar.gz
misskey-caf625afeee297864f84be5ff3705b96a129fd55.tar.bz2
misskey-caf625afeee297864f84be5ff3705b96a129fd55.zip
Merge pull request #2441 from syuilo/develop
8.4.0
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/pages/admin/admin.chart.chart.ts3
-rw-r--r--src/client/app/desktop/views/pages/admin/admin.chart.vue15
2 files changed, 13 insertions, 5 deletions
diff --git a/src/client/app/desktop/views/pages/admin/admin.chart.chart.ts b/src/client/app/desktop/views/pages/admin/admin.chart.chart.ts
index c09dc6dd8c..4ba348fb0f 100644
--- a/src/client/app/desktop/views/pages/admin/admin.chart.chart.ts
+++ b/src/client/app/desktop/views/pages/admin/admin.chart.chart.ts
@@ -23,7 +23,8 @@ export default Vue.extend({
methods: {
render() {
this.renderChart(this.data, mergeOptions({
- responsive: false,
+ responsive: true,
+ maintainAspectRatio: false,
scales: {
xAxes: [{
type: 'time',
diff --git a/src/client/app/desktop/views/pages/admin/admin.chart.vue b/src/client/app/desktop/views/pages/admin/admin.chart.vue
index 8db54174ff..f40f89b2e0 100644
--- a/src/client/app/desktop/views/pages/admin/admin.chart.vue
+++ b/src/client/app/desktop/views/pages/admin/admin.chart.vue
@@ -30,7 +30,9 @@
<a @click="span = 'day'">%i18n:@per-day%</a> | <a @click="span = 'hour'">%i18n:@per-hour%</a>
</div>
</header>
- <x-chart v-if="chart" :data="data[0]" :opts="data[1]" :width="720" :height="300"/>
+ <div>
+ <x-chart v-if="chart" :data="data[0]" :opts="data[1]"/>
+ </div>
</div>
</template>
@@ -139,7 +141,7 @@ export default Vue.extend({
return [{
datasets: [{
label: local ? 'Local Notes' : 'Remote Notes',
- fill: false,
+ fill: true,
borderColor: '#f6584f',
borderWidth: 2,
pointBackgroundColor: '#fff',
@@ -160,7 +162,7 @@ export default Vue.extend({
return [{
datasets: [{
label: local ? 'Local Users' : 'Remote Users',
- fill: false,
+ fill: true,
borderColor: '#f6584f',
borderWidth: 2,
pointBackgroundColor: '#fff',
@@ -181,7 +183,7 @@ export default Vue.extend({
return [{
datasets: [{
label: local ? 'Local Drive Usage' : 'Remote Drive Usage',
- fill: false,
+ fill: true,
borderColor: '#f6584f',
borderWidth: 2,
pointBackgroundColor: '#fff',
@@ -238,4 +240,9 @@ export default Vue.extend({
> *:last-child
margin-left auto
+ > div
+ > *
+ display block
+ height 300px
+
</style>