From d9e8703882ee7191d8b22bfb01df8fa1b8e4f7e6 Mon Sep 17 00:00:00 2001 From: patak Date: Mon, 26 Dec 2022 08:37:42 +0100 Subject: [PATCH] feat: threads improvements (#562) --- components/status/StatusCard.vue | 40 ++++------------ components/status/StatusContent.vue | 58 ++++++++++++++++++++++++ components/status/StatusDetails.vue | 43 ++++-------------- pages/[[server]]/@[account]/[status].vue | 25 +++++----- styles/vars.css | 2 +- unocss.config.ts | 1 + 6 files changed, 91 insertions(+), 78 deletions(-) create mode 100644 components/status/StatusContent.vue diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index 5d6320c9..f9259bec 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -9,6 +9,7 @@ const props = withDefaults( hover?: boolean faded?: boolean showReplyTo?: boolean + connectReply?: boolean }>(), { actions: true, showReplyTo: true }, ) @@ -60,6 +61,7 @@ const avatarOnAvatar = $(computedEager(() => useFeatureFlags().experimentalAvata const showRebloggedByAvatarOnAvatar = $computed(() => rebloggedBy && avatarOnAvatar && rebloggedBy.id !== status.account.id) const isDM = $computed(() => status.visibility === 'direct') +const isSelf = $computed(() => status.account.id === currentUser.value?.account.id)