From 8be9d15e817e66e71ea64d5ed1adc8eee32bb967 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 30 Jun 2022 21:38:34 +0900 Subject: [PATCH] chore(client): tweak ui --- .../client/src/components/instance-stats.vue | 6 +- packages/client/src/pages/gallery/edit.vue | 49 ++++---- packages/client/src/pages/gallery/index.vue | 33 ++++-- packages/client/src/pages/gallery/post.vue | 110 +++++++++--------- packages/client/src/pages/user/gallery.vue | 40 +++---- 5 files changed, 123 insertions(+), 115 deletions(-) diff --git a/packages/client/src/components/instance-stats.vue b/packages/client/src/components/instance-stats.vue index 1646a7e93..2f83b2f89 100644 --- a/packages/client/src/components/instance-stats.vue +++ b/packages/client/src/components/instance-stats.vue @@ -112,9 +112,9 @@ function createDoughnut(chartEl, tooltip, data) { labels: data.map(x => x.name), datasets: [{ backgroundColor: data.map(x => x.color), - borderWidth: 0, - spacing: 4, - hoverOffset: 4, + borderColor: getComputedStyle(document.documentElement).getPropertyValue('--panel'), + borderWidth: 2, + hoverOffset: 0, data: data.map(x => x.value), }], }, diff --git a/packages/client/src/pages/gallery/edit.vue b/packages/client/src/pages/gallery/edit.vue index fa3063bde..1de8328fe 100644 --- a/packages/client/src/pages/gallery/edit.vue +++ b/packages/client/src/pages/gallery/edit.vue @@ -1,30 +1,33 @@ diff --git a/packages/client/src/pages/gallery/index.vue b/packages/client/src/pages/gallery/index.vue index b26470dbe..1eb6ce22f 100644 --- a/packages/client/src/pages/gallery/index.vue +++ b/packages/client/src/pages/gallery/index.vue @@ -1,14 +1,8 @@ -