From 2a4e1bf8f66d420677b9de02b074140a2284d6ed Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 29 Dec 2022 14:21:11 +0100 Subject: [PATCH] feat: collpase self thread when possible --- components/status/StatusCard.vue | 6 +++++- components/status/StatusReplyingTo.vue | 15 +++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index 5644221e..a493a15b 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -70,6 +70,7 @@ const isFiltered = $computed(() => filterPhrase && (props.context ? filter?.cont const avatarOnAvatar = $(computedEager(() => useFeatureFlags().experimentalAvatarOnAvatar)) const collapseRebloggedBy = $computed(() => rebloggedBy?.id === status.account.id) const showRebloggedByAvatarOnAvatar = $computed(() => rebloggedBy && avatarOnAvatar && rebloggedBy.id !== status.account.id) +const collapseReplyingTo = $computed(() => (!rebloggedBy || collapseRebloggedBy) && status.inReplyToAccountId === status.account.id) const isDM = $computed(() => status.visibility === 'direct') @@ -98,7 +99,7 @@ const isDM = $computed(() => status.visibility === 'direct')
- +
@@ -122,6 +123,9 @@ const isDM = $computed(() => status.visibility === 'direct') +
+ +
diff --git a/components/status/StatusReplyingTo.vue b/components/status/StatusReplyingTo.vue index 60f50b68..e69cf8e2 100644 --- a/components/status/StatusReplyingTo.vue +++ b/components/status/StatusReplyingTo.vue @@ -1,8 +1,9 @@