This commit is contained in:
Henry Jameson 2026-01-22 20:52:47 +02:00
commit 35a3d59235
12 changed files with 80 additions and 65 deletions

View file

@ -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: {

View file

@ -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">