From 57e533a5eff4e92871505cc9b3887af31849c2d3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 16 Jul 2022 13:49:23 +0900 Subject: [PATCH] chore(client): tweak ui --- .../client/src/components/global/page-header.vue | 4 ++-- packages/client/src/directives/tooltip.ts | 3 ++- packages/client/src/pages/admin/_header_.vue | 4 ++-- .../client/src/ui/_common_/navbar-for-mobile.vue | 2 +- packages/client/src/ui/_common_/navbar.vue | 14 +++++++------- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/packages/client/src/components/global/page-header.vue b/packages/client/src/components/global/page-header.vue index 766f9b6b6a..106e216b9b 100644 --- a/packages/client/src/components/global/page-header.vue +++ b/packages/client/src/components/global/page-header.vue @@ -18,7 +18,7 @@
- @@ -27,7 +27,7 @@
diff --git a/packages/client/src/directives/tooltip.ts b/packages/client/src/directives/tooltip.ts index e1b85291bd..8b68771cad 100644 --- a/packages/client/src/directives/tooltip.ts +++ b/packages/client/src/directives/tooltip.ts @@ -7,10 +7,11 @@ import { popup, alert } from '@/os'; const start = isTouchUsing ? 'touchstart' : 'mouseover'; const end = isTouchUsing ? 'touchend' : 'mouseleave'; -const delay = 100; export default { mounted(el: HTMLElement, binding, vn) { + const delay = binding.modifiers.noDelay ? 0 : 100; + const self = (el as any)._tooltipDirective_ = {} as any; self.text = binding.value as string; diff --git a/packages/client/src/pages/admin/_header_.vue b/packages/client/src/pages/admin/_header_.vue index aea2663c39..b2c33fdc95 100644 --- a/packages/client/src/pages/admin/_header_.vue +++ b/packages/client/src/pages/admin/_header_.vue @@ -9,7 +9,7 @@
- @@ -20,7 +20,7 @@
diff --git a/packages/client/src/ui/_common_/navbar-for-mobile.vue b/packages/client/src/ui/_common_/navbar-for-mobile.vue index cae1d25304..d1b4c30b31 100644 --- a/packages/client/src/ui/_common_/navbar-for-mobile.vue +++ b/packages/client/src/ui/_common_/navbar-for-mobile.vue @@ -3,7 +3,7 @@
-
diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index 930ba79327..3eb8c5a37c 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -3,12 +3,12 @@
-
- + {{ i18n.ts.timeline }}
- + {{ i18n.ts.controlPanel }} - + {{ i18n.ts.settings }}
- -