From 7c3a3907639ba99b1539589690255890394668a3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Feb 2023 20:53:32 +0900 Subject: [PATCH] =?UTF-8?q?enhance(client):=20=E3=83=8E=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=81=AE=E6=93=8D=E4=BD=9C=E9=83=A8=E3=82=92=E3=83=9B=E3=83=90?= =?UTF-8?q?=E3=83=BC=E6=99=82=E3=81=AE=E3=81=BF=E8=A1=A8=E7=A4=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + locales/ja-JP.yml | 1 + packages/frontend/src/components/MkNote.vue | 43 +++++++++++++++---- .../frontend/src/pages/settings/general.vue | 2 + .../pages/settings/preferences-backups.vue | 2 + packages/frontend/src/store.ts | 4 ++ 6 files changed, 45 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5e8ac11f7..6be07e3244 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ You should also include the user name that made the change. ### Improvements - プッシュ通知でカスタム絵文字リアクションを表示できるように - アンテナでCWも検索対象にするように +- ノートの操作部をホバー時のみ表示するオプションを追加 ### Bugfixes - 外部メディアプロキシ使用時にアバタークロップができない問題を修正 diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 75b09698e8..ef5e1853b8 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -457,6 +457,7 @@ aboutX: "{x}について" emojiStyle: "絵文字のスタイル" native: "ネイティブ" disableDrawer: "メニューをドロワーで表示しない" +showNoteActionsOnlyHover: "ノートの操作部をホバー時のみ表示する" noHistory: "履歴はありません" signinHistory: "ログイン履歴" enableAdvancedMfm: "高度なMFMを有効にする" diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 1040dac12e..a3237c5e93 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -4,7 +4,7 @@ v-show="!isDeleted" ref="el" v-hotkey="keymap" - :class="$style.root" + :class="[$style.root, { [$style.showActionsOnlyHover]: defaultStore.state.showNoteActionsOnlyHover }]" :tabindex="!isDeleted ? '-1' : undefined" > @@ -76,14 +76,14 @@ {{ appearNote.channel.name }} + + +