From 88e09ef380c8168fd388ac1138ce42f3e0da52aa Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 11 Feb 2022 15:14:08 +0900 Subject: [PATCH] chore(client): tweak chart --- packages/client/src/components/chart.vue | 6 ++++-- packages/client/src/pages/user/index.activity.vue | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/client/src/components/chart.vue b/packages/client/src/components/chart.vue index 030ce2a42..b90c790c3 100644 --- a/packages/client/src/components/chart.vue +++ b/packages/client/src/components/chart.vue @@ -217,6 +217,7 @@ export default defineComponent({ borderColor: x.color ? x.color : getColor(i), borderDash: x.borderDash || [], borderJoinStyle: 'round', + borderRadius: props.bar ? 3 : undefined, backgroundColor: props.bar ? (x.color ? x.color : getColor(i)) : alpha(x.color ? x.color : getColor(i), 0.1), gradient: props.bar ? undefined : { backgroundColor: { @@ -248,6 +249,7 @@ export default defineComponent({ x: { type: 'time', stacked: props.stacked, + offset: false, time: { stepSize: 1, unit: props.span === 'day' ? 'month' : 'day', @@ -309,7 +311,7 @@ export default defineComponent({ }, external: externalTooltipHandler, }, - zoom: { + zoom: props.detailed ? { pan: { enabled: true, }, @@ -335,7 +337,7 @@ export default defineComponent({ max: 'original', }, } - }, + } : undefined, gradient, }, }, diff --git a/packages/client/src/pages/user/index.activity.vue b/packages/client/src/pages/user/index.activity.vue index ebb251d4c..f64e9d5b6 100644 --- a/packages/client/src/pages/user/index.activity.vue +++ b/packages/client/src/pages/user/index.activity.vue @@ -18,6 +18,6 @@ const props = withDefaults(defineProps<{ user: misskey.entities.User; limit?: number; }>(), { - limit: 40, + limit: 50, });