diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-07-12 22:42:50 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-07-12 22:42:50 +0900 |
| commit | d7247e2db253cdbb651aa4bcc388cc89a9735b39 (patch) | |
| tree | c76cec3ebb29ee3d0c63bf4407a9e732bf809b86 /packages/client/src | |
| parent | feat: support <plain> syntax for mfm (diff) | |
| download | sharkey-d7247e2db253cdbb651aa4bcc388cc89a9735b39.tar.gz sharkey-d7247e2db253cdbb651aa4bcc388cc89a9735b39.tar.bz2 sharkey-d7247e2db253cdbb651aa4bcc388cc89a9735b39.zip | |
chore(client): tweak ui
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/components/chart.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/components/ui/super-menu.vue | 4 | ||||
| -rw-r--r-- | packages/client/src/pages/admin/overview.vue | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/components/chart.vue b/packages/client/src/components/chart.vue index fc7c4ff950..31e95404fa 100644 --- a/packages/client/src/components/chart.vue +++ b/packages/client/src/components/chart.vue @@ -316,7 +316,7 @@ const render = () => { plugins: [{ id: 'vLine', beforeDraw(chart, args, options) { - if (chart.tooltip._active && chart.tooltip._active.length) { + if (chart.tooltip?._active?.length) { const activePoint = chart.tooltip._active[0]; const ctx = chart.ctx; const x = activePoint.element.x; diff --git a/packages/client/src/components/ui/super-menu.vue b/packages/client/src/components/ui/super-menu.vue index 78f524036d..8ce2dc5dc2 100644 --- a/packages/client/src/components/ui/super-menu.vue +++ b/packages/client/src/components/ui/super-menu.vue @@ -30,7 +30,7 @@ export default defineComponent({ props: { def: { type: Array, - required: true + required: true, }, grid: { type: Boolean, @@ -64,7 +64,7 @@ export default defineComponent({ box-sizing: border-box; padding: 10px 16px 10px 8px; border-radius: 9px; - font-size: 0.95em; + font-size: 0.9em; &:hover { text-decoration: none; diff --git a/packages/client/src/pages/admin/overview.vue b/packages/client/src/pages/admin/overview.vue index 7e085106b9..d7c3ab7cc7 100644 --- a/packages/client/src/pages/admin/overview.vue +++ b/packages/client/src/pages/admin/overview.vue @@ -355,7 +355,7 @@ async function renderChart() { plugins: [{ id: 'vLine', beforeDraw(chart, args, options) { - if (chart.tooltip._active && chart.tooltip._active.length) { + if (chart.tooltip?._active?.length) { const activePoint = chart.tooltip._active[0]; const ctx = chart.ctx; const x = activePoint.element.x; |