Compare commits

...

4 Commits

Author SHA1 Message Date
syuilo
e60048eb96 12.35.1 2020-04-19 16:19:01 +09:00
syuilo
8957eec475 fix(client): Fix canvas overflow 2020-04-19 16:15:24 +09:00
syuilo
e790af566c chore: 🎨 2020-04-19 16:09:57 +09:00
syuilo
43fe0cd62e feat(pages): Improve chart 2020-04-19 15:48:05 +09:00
4 changed files with 17 additions and 4 deletions

View File

@@ -1,6 +1,11 @@
ChangeLog
=========
12.35.1 (2020/4/19)
-------------------
### 🐛Fixes
* Pagesのチャート描画を調整
12.35.0 (2020/4/19)
-------------------
### ✨Improvements

View File

@@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <syuilotan@yahoo.co.jp>",
"version": "12.35.0",
"version": "12.35.1",
"codename": "indigo",
"repository": {
"type": "git",

View File

@@ -26,6 +26,8 @@ export default Vue.extend({
.ysrxegms {
display: inline-block;
vertical-align: bottom;
overflow: auto;
max-width: 100%;
> canvas {
display: block;

View File

@@ -100,7 +100,8 @@ export class ASEvaluator {
responsive: false,
title: {
display: opts.value.has('title'),
text: opts.value.has('title') ? opts.value.get('title').value : ''
text: opts.value.has('title') ? opts.value.get('title').value : '',
fontSize: 14,
},
layout: {
padding: {
@@ -126,14 +127,19 @@ export class ASEvaluator {
...(opts.value.get('type').value === 'radar' ? {
scale: {
ticks: {
beginAtZero: opts.value.has('begin_at_zero') ? opts.value.get('begin_at_zero') : false
min: opts.value.has('min') ? opts.value.get('min').value : undefined,
max: opts.value.has('max') ? opts.value.get('max').value : undefined,
},
pointLabels: {
fontSize: 12
}
}
} : {
scales: {
yAxes: [{
ticks: {
beginAtZero: opts.value.has('begin_at_zero') ? opts.value.get('begin_at_zero') : false
min: opts.value.has('min') ? opts.value.get('min').value : undefined,
max: opts.value.has('max') ? opts.value.get('max').value : undefined,
}
}]
}