From 8fb9739f69d3a9308a2aa1e6731b65692c119252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 10 Jan 2023 15:14:22 +0800 Subject: [PATCH] feat(status): show visibility icon when non-public closes #920 --- components/status/StatusCard.vue | 21 +++++++++++-------- components/status/StatusDetails.vue | 6 +----- .../status/StatusVisibilityIndicator.vue | 15 +++++++++++++ 3 files changed, 28 insertions(+), 14 deletions(-) create mode 100644 components/status/StatusVisibilityIndicator.vue diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index 9875e3ff..9e227114 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -164,15 +164,18 @@ const showReplyTo = $computed(() => !replyToMain && !directReply)
-
- - - - - - +
+ +
+ + + + + + +
diff --git a/components/status/StatusDetails.vue b/components/status/StatusDetails.vue index 6e6fbe7e..dd53bcda 100644 --- a/components/status/StatusDetails.vue +++ b/components/status/StatusDetails.vue @@ -17,8 +17,6 @@ const status = $computed(() => { const createdAt = useFormattedDateTime(status.createdAt) -const visibility = $computed(() => statusVisibilities.find(v => v.value === status.visibility)!) - const { t } = useI18n() useHeadFixed({ @@ -48,9 +46,7 @@ const isDM = $computed(() => status.visibility === 'direct')
·
- -
- +
·
diff --git a/components/status/StatusVisibilityIndicator.vue b/components/status/StatusVisibilityIndicator.vue new file mode 100644 index 00000000..95015897 --- /dev/null +++ b/components/status/StatusVisibilityIndicator.vue @@ -0,0 +1,15 @@ + + +