From 9d7812f436cbfa8e399f87bcd9988b0a0f8f7473 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 20 Dec 2022 15:11:20 +0900 Subject: [PATCH] :art: --- locales/ja-JP.yml | 2 ++ packages/client/src/components/MkUrlPreview.vue | 2 +- packages/client/src/components/MkWindow.vue | 11 ++++++----- packages/client/src/components/MkYoutubePlayer.vue | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index bd6cee0272..1d05755629 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -906,6 +906,8 @@ pushNotificationAlreadySubscribed: "プッシュ通知は有効です" pushNotificationNotSupported: "ブラウザかインスタンスがプッシュ通知に非対応" sendPushNotificationReadMessage: "通知やメッセージが既読になったらプッシュ通知を削除する" sendPushNotificationReadMessageCaption: "「{emptyPushNotificationMessage}」という通知が一瞬表示されるようになります。端末の電池消費量が増加する可能性があります。" +windowMaximize: "最大化" +windowRestore: "元に戻す" _sensitiveMediaDetection: description: "機械学習を使って自動でセンシティブなメディアを検出し、モデレーションに役立てることができます。サーバーの負荷が少し増えます。" diff --git a/packages/client/src/components/MkUrlPreview.vue b/packages/client/src/components/MkUrlPreview.vue index 4f75d31db4..9ef6efa1e5 100644 --- a/packages/client/src/components/MkUrlPreview.vue +++ b/packages/client/src/components/MkUrlPreview.vue @@ -82,7 +82,7 @@ if (requestUrl.hostname === 'music.youtube.com' && requestUrl.pathname.match('^/ requestUrl.hostname = 'www.youtube.com'; } -const requestLang = (lang || 'ja-JP').replace('ja-KS', 'ja-JP'); +const requestLang = (lang ?? 'ja-JP').replace('ja-KS', 'ja-JP'); requestUrl.hash = ''; diff --git a/packages/client/src/components/MkWindow.vue b/packages/client/src/components/MkWindow.vue index 13c4e90f3e..d9c0035a86 100644 --- a/packages/client/src/components/MkWindow.vue +++ b/packages/client/src/components/MkWindow.vue @@ -11,9 +11,9 @@ - - - + + +
@@ -39,6 +39,7 @@ import { onBeforeUnmount, onMounted, provide } from 'vue'; import contains from '@/scripts/contains'; import * as os from '@/os'; import { MenuItem } from '@/types/menu'; +import { i18n } from '@/i18n'; const minHeight = 50; const minWidth = 250; @@ -431,10 +432,10 @@ defineExpose({ border-radius: var(--radius); > .header { - --height: 42px; + --height: 39px; &.mini { - --height: 38px; + --height: 32px; } display: flex; diff --git a/packages/client/src/components/MkYoutubePlayer.vue b/packages/client/src/components/MkYoutubePlayer.vue index 815dc82a27..8cd481a39c 100644 --- a/packages/client/src/components/MkYoutubePlayer.vue +++ b/packages/client/src/components/MkYoutubePlayer.vue @@ -1,8 +1,8 @@