From 1c35bf32bb04f6eca43f807717bf4a7053496e39 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:05:17 +0900 Subject: [PATCH] =?UTF-8?q?media=E3=81=BE=E3=82=8F=E3=82=8A=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 4 ++ locales/ja-JP.yml | 1 + .../frontend/src/components/MkMediaImage.vue | 2 + .../frontend/src/components/MkMediaList.vue | 42 ++++++++++++++++--- packages/frontend/src/components/MkNote.vue | 3 +- .../src/components/MkNoteDetailed.vue | 4 +- .../components/MkReactionsViewer.reaction.vue | 3 +- .../src/components/MkSubNoteContent.vue | 3 +- packages/frontend/src/pages/embed/note.vue | 5 ++- .../src/pages/embed/user-timeline.vue | 6 ++- packages/frontend/src/ui/embed.vue | 12 +----- 11 files changed, 60 insertions(+), 25 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 0b1b86d373..1ba4ad79c3 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -4984,6 +4984,10 @@ export interface Locale extends ILocale { * お問い合わせ */ "inquiry": string; + /** + * {x}から + */ + "fromX": ParameterizedString<"x">; "_delivery": { /** * 配信状態 diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index a89cfbd843..da45b0159b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1242,6 +1242,7 @@ keepOriginalFilenameDescription: "この設定をオフにすると、アップ noDescription: "説明文はありません" alwaysConfirmFollow: "フォローの際常に確認する" inquiry: "お問い合わせ" +fromX: "{x}から" _delivery: status: "配信状態" diff --git a/packages/frontend/src/components/MkMediaImage.vue b/packages/frontend/src/components/MkMediaImage.vue index 82f36fe5c4..30e6cf11db 100644 --- a/packages/frontend/src/components/MkMediaImage.vue +++ b/packages/frontend/src/components/MkMediaImage.vue @@ -14,6 +14,8 @@ SPDX-License-Identifier: AGPL-3.0-only title: image.name, class: $style.imageContainer, href: image.url, + target: '_blank', + rel: 'noopener', style: 'cursor: zoom-in;' }" > diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index b1321a8ef9..4909842db6 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -5,7 +5,10 @@ SPDX-License-Identifier: AGPL-3.0-only