From 4c2cd3c8d58649c4a2d891caf088dcbee99596a3 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 +- .../client/src/pages/admin/overview.pie.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 +++---- 6 files changed, 126 insertions(+), 118 deletions(-) diff --git a/packages/client/src/components/instance-stats.vue b/packages/client/src/components/instance-stats.vue index 1646a7e93e..2f83b2f897 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/admin/overview.pie.vue b/packages/client/src/pages/admin/overview.pie.vue index 41a5e53ae3..667f236d9b 100644 --- a/packages/client/src/pages/admin/overview.pie.vue +++ b/packages/client/src/pages/admin/overview.pie.vue @@ -64,9 +64,9 @@ onMounted(() => { labels: props.data.map(x => x.name), datasets: [{ backgroundColor: props.data.map(x => x.color), - borderWidth: 0, - spacing: 4, - hoverOffset: 4, + borderColor: getComputedStyle(document.documentElement).getPropertyValue('--panel'), + borderWidth: 2, + hoverOffset: 0, data: props.data.map(x => x.value), }], }, diff --git a/packages/client/src/pages/gallery/edit.vue b/packages/client/src/pages/gallery/edit.vue index fa3063bde0..1de8328fea 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 b26470dbe9..1eb6ce22f8 100644 --- a/packages/client/src/pages/gallery/index.vue +++ b/packages/client/src/pages/gallery/index.vue @@ -1,14 +1,8 @@ -