From 49499f3d7d96ce9e03dd704c47a91ac2c1b43070 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 18 Jul 2022 05:03:39 +0900 Subject: [PATCH] enhance(client): tweak ui --- CHANGELOG.md | 2 ++ packages/client/src/components/global/a.vue | 10 +++++++--- packages/client/src/components/ui/window.vue | 16 ++++++++++++---- packages/client/src/pages/settings/index.vue | 2 -- packages/client/src/pages/settings/profile.vue | 3 ++- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa253d11a..ca486e640 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ You should also include the user name that made the change. ### Improvements - Client: ウィンドウを最大化できるように @syuilo +- Client: Shiftキーを押した状態でリンクをクリックするとアプリ内ウィンドウで開くように @syuilo +- Client: デッキを使用している際、Ctrlキーを押した状態でリンクをクリックするとページ遷移を強制できるように @syuilo - Client: UIのブラッシュアップ @syuilo ### Bugfixes diff --git a/packages/client/src/components/global/a.vue b/packages/client/src/components/global/a.vue index c7cf12e8c..67bf54def 100644 --- a/packages/client/src/components/global/a.vue +++ b/packages/client/src/components/global/a.vue @@ -50,7 +50,7 @@ function onContextmenu(ev) { icon: 'fas fa-expand-alt', text: i18n.ts.showInPage, action: () => { - router.push(props.to); + router.push(props.to, 'forcePage'); }, }, null, { icon: 'fas fa-external-link-alt', @@ -79,7 +79,7 @@ function popout() { popout_(props.to); } -function nav() { +function nav(ev: MouseEvent) { if (props.behavior === 'browser') { location.href = props.to; return; @@ -93,6 +93,10 @@ function nav() { } } - router.push(props.to); + if (ev.shiftKey) { + return openWindow(); + } + + router.push(props.to, ev.ctrlKey ? 'forcePage' : null); } diff --git a/packages/client/src/components/ui/window.vue b/packages/client/src/components/ui/window.vue index 120861917..e259ecdab 100644 --- a/packages/client/src/components/ui/window.vue +++ b/packages/client/src/components/ui/window.vue @@ -1,6 +1,6 @@