From 89c8a65b245a639ec95449d94a6a5aefd9eda034 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 df3a1e027..c74a7171c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ You should also include the user name that made the change. - Server: Add rate limit to i/notifications @tamaina - Client: Improve control panel @syuilo - Client: Show warning in control panel when there is an unresolved abuse report @syuilo +- Client: For notes with specified visibility, show recipients when hovering over visibility symbol. @Johann150 - Make possible to delete an account by admin @syuilo - Improve player detection in URL preview @mei23 - Add Badge Image to Push Notification #8012 @tamaina 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 @@ + +