WIP
This commit is contained in:
parent
5bdf341560
commit
35a3d59235
12 changed files with 80 additions and 65 deletions
|
|
@ -220,11 +220,11 @@ export default {
|
|||
},
|
||||
userHighlightType: {
|
||||
get() {
|
||||
const data = this.mergedConfig.highlight[this.user.screen_name]
|
||||
const data = this.highlight[this.user.screen_name]
|
||||
return (data && data.type) || 'disabled'
|
||||
},
|
||||
set(type) {
|
||||
const data = this.mergedConfig.highlight[this.user.screen_name]
|
||||
const data = this.highlight[this.user.screen_name]
|
||||
if (type !== 'disabled') {
|
||||
this.$store.dispatch('setHighlight', {
|
||||
user: this.user.screen_name,
|
||||
|
|
@ -241,7 +241,7 @@ export default {
|
|||
},
|
||||
userHighlightColor: {
|
||||
get() {
|
||||
const data = this.mergedConfig.highlight[this.user.screen_name]
|
||||
const data = this.highlight[this.user.screen_name]
|
||||
return data && data.color
|
||||
},
|
||||
set(color) {
|
||||
|
|
@ -384,11 +384,11 @@ export default {
|
|||
],
|
||||
})
|
||||
},
|
||||
...mapGetters(['mergedConfig']),
|
||||
...mapState(useSyncConfigStore, {
|
||||
hideUserStats: (store) => store.prefsStorage.simple.hideUserStats,
|
||||
hideUserStats: (store) => store.mergedConfig.hideUserStats,
|
||||
userCardLeftJustify: (store) => store.mergedConfig.userCardLeftJustify,
|
||||
userCardHidePersonalMarks: (store) =>
|
||||
store.prefsStorage.simple.userCardHidePersonalMarks,
|
||||
store.mergedConfig.userCardHidePersonalMarks,
|
||||
}),
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@
|
|||
<RichContent
|
||||
v-if="!hideBio"
|
||||
class="user-card-bio"
|
||||
:class="{ '-justify-left': mergedConfig.userCardLeftJustify }"
|
||||
:class="{ '-justify-left': userCardLeftJustify }"
|
||||
:html="editable ? newBio.replace(/\n/g, '<br>') : user.description_html"
|
||||
:emoji="editable ? emoji : user.emoji"
|
||||
:handle-links="true"
|
||||
|
|
@ -368,7 +368,7 @@
|
|||
v-model="newBio"
|
||||
enable-emoji-picker
|
||||
class="user-card-bio"
|
||||
:class="{ '-justify-left': mergedConfig.userCardLeftJustify }"
|
||||
:class="{ '-justify-left': userCardLeftJustify }"
|
||||
:suggest="emojiUserSuggestor"
|
||||
>
|
||||
<template #default="inputProps">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue