forked from AkkomaGang/akkoma-fe
Make fading ancestors optional
This commit is contained in:
parent
fa20ea76b1
commit
d157f67381
5 changed files with 12 additions and 2 deletions
|
@ -89,6 +89,9 @@ const conversation = {
|
||||||
isLinearView () {
|
isLinearView () {
|
||||||
return this.displayStyle === 'linear'
|
return this.displayStyle === 'linear'
|
||||||
},
|
},
|
||||||
|
shouldFadeAncestors () {
|
||||||
|
return this.$store.getters.mergedConfig.conversationTreeFadeAncestors
|
||||||
|
},
|
||||||
otherRepliesButtonPosition () {
|
otherRepliesButtonPosition () {
|
||||||
return this.$store.getters.mergedConfig.conversationOtherRepliesButton
|
return this.$store.getters.mergedConfig.conversationOtherRepliesButton
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
v-for="status in ancestorsOf(diveRoot)"
|
v-for="status in ancestorsOf(diveRoot)"
|
||||||
:key="status.id"
|
:key="status.id"
|
||||||
class="thread-ancestor"
|
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}"
|
||||||
>
|
>
|
||||||
<status
|
<status
|
||||||
ref="statusComponent"
|
ref="statusComponent"
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
border-left: 2px solid var(--border, $fallback--border);
|
border-left: 2px solid var(--border, $fallback--border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.thread-ancestor .StatusContent {
|
.thread-ancestor.-faded .StatusContent {
|
||||||
--link: var(--faintLink);
|
--link: var(--faintLink);
|
||||||
--text: var(--faint);
|
--text: var(--faint);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
|
|
@ -170,6 +170,11 @@
|
||||||
{{ $t('settings.tree_advanced') }}
|
{{ $t('settings.tree_advanced') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="conversationTreeFadeAncestors">
|
||||||
|
{{ $t('settings.tree_fade_ancestors') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="maxDepthInThread">
|
<label for="maxDepthInThread">
|
||||||
{{ $t('settings.max_depth_in_thread') }}
|
{{ $t('settings.max_depth_in_thread') }}
|
||||||
|
|
|
@ -87,6 +87,7 @@ export const defaultState = {
|
||||||
conversationDisplay: undefined, // instance default
|
conversationDisplay: undefined, // instance default
|
||||||
conversationTreeAdvanced: undefined, // instance default
|
conversationTreeAdvanced: undefined, // instance default
|
||||||
conversationOtherRepliesButton: undefined, // instance default
|
conversationOtherRepliesButton: undefined, // instance default
|
||||||
|
conversationTreeFadeAncestors: undefined, // instance default
|
||||||
maxDepthInThread: 6
|
maxDepthInThread: 6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@ const defaultState = {
|
||||||
conversationDisplay: 'linear',
|
conversationDisplay: 'linear',
|
||||||
conversationTreeAdvanced: false,
|
conversationTreeAdvanced: false,
|
||||||
conversationOtherRepliesButton: 'below',
|
conversationOtherRepliesButton: 'below',
|
||||||
|
conversationTreeFadeAncestors: false,
|
||||||
maxDepthInThread: 6,
|
maxDepthInThread: 6,
|
||||||
|
|
||||||
// Nasty stuff
|
// Nasty stuff
|
||||||
|
|
Loading…
Reference in a new issue