From d157f6738195325c59870fe02df8fa16985c84af Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Sun, 6 Mar 2022 14:13:35 -0500 Subject: [PATCH] Make fading ancestors optional --- src/components/conversation/conversation.js | 3 +++ src/components/conversation/conversation.vue | 4 ++-- src/components/settings_modal/tabs/general_tab.vue | 5 +++++ src/modules/config.js | 1 + src/modules/instance.js | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 46228e37..89ff2f6f 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -89,6 +89,9 @@ const conversation = { isLinearView () { return this.displayStyle === 'linear' }, + shouldFadeAncestors () { + return this.$store.getters.mergedConfig.conversationTreeFadeAncestors + }, otherRepliesButtonPosition () { return this.$store.getters.mergedConfig.conversationOtherRepliesButton }, diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index 73c613b9..3e96fba2 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -50,7 +50,7 @@ v-for="status in ancestorsOf(diveRoot)" :key="status.id" class="thread-ancestor" - :class="{'thread-ancestor-has-other-replies': getReplies(status.id).length > 1}" + :class="{'thread-ancestor-has-other-replies': getReplies(status.id).length > 1, '-faded': shouldFadeAncestors}" > +
  • + + {{ $t('settings.tree_fade_ancestors') }} + +