From 84fe65fc3a11529bacb78766d72e1c21badac92e Mon Sep 17 00:00:00 2001 From: Johann150 Date: Thu, 7 Jul 2022 14:17:47 +0200 Subject: [PATCH] enhance: show recipients of notes with specified visibility (#8949) * enhance: reusable visibility component * rename renote tooltip component The tooltip that is used for renotes can be used in other cases as well. * add tooltip for specified recipients * add changelog entry * Update visibility.vue Co-authored-by: syuilo --- CHANGELOG.md | 1 + .../client/src/components/note-detailed.vue | 29 ++++-------- .../client/src/components/note-header.vue | 16 +------ packages/client/src/components/note.vue | 16 +------ .../client/src/components/renote-button.vue | 2 +- .../{renote.details.vue => users-tooltip.vue} | 0 packages/client/src/components/visibility.vue | 47 +++++++++++++++++++ 7 files changed, 62 insertions(+), 49 deletions(-) rename packages/client/src/components/{renote.details.vue => users-tooltip.vue} (100%) create mode 100644 packages/client/src/components/visibility.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 128ee4cde..0b2ffe480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ You should also include the user name that made the change. - Client: Word mute also checks content warnings @Johann150 - Client: メニューからページをリロードできるように @syuilo - Client: Improve emoji picker performance @syuilo +- Client: For notes with specified visibility, show recipients when hovering over visibility symbol. @Johann150 - Client: Make widgets available again on a tablet @syuilo - ユーザーにモデレーションメモを残せる機能 @syuilo - Make possible to delete an account by admin @syuilo diff --git a/packages/client/src/components/note-detailed.vue b/packages/client/src/components/note-detailed.vue index ba47bfcd4..c05ab7fec 100644 --- a/packages/client/src/components/note-detailed.vue +++ b/packages/client/src/components/note-detailed.vue @@ -26,12 +26,7 @@ - - - - - - +
@@ -43,12 +38,9 @@ bot - - - - - - +
+ +
@@ -134,6 +126,7 @@ import XPoll from './poll.vue'; import XRenoteButton from './renote-button.vue'; import MkUrlPreview from '@/components/url-preview.vue'; import MkInstanceTicker from '@/components/instance-ticker.vue'; +import MkVisibility from '@/components/visibility.vue'; import { pleaseLogin } from '@/scripts/please-login'; import { checkWordMute } from '@/scripts/check-word-mute'; import { userPage } from '@/filters/user'; @@ -388,14 +381,6 @@ if (appearNote.replyId) { margin-right: 4px; } } - - > .visibility { - margin-left: 8px; - } - - > .localOnly { - margin-left: 8px; - } } } @@ -441,6 +426,10 @@ if (appearNote.replyId) { border: solid 0.5px var(--divider); border-radius: 4px; } + + > .info { + float: right; + } } } } diff --git a/packages/client/src/components/note-header.vue b/packages/client/src/components/note-header.vue index 56a3a37e7..0b0549856 100644 --- a/packages/client/src/components/note-header.vue +++ b/packages/client/src/components/note-header.vue @@ -9,12 +9,7 @@ - - - - - - + @@ -22,6 +17,7 @@ + +