fix: change all DMs to primary colour (#602)

zio/stable
Lu[ke] Wilson 2022-12-28 12:30:29 +00:00 committed by GitHub
parent 75047e878b
commit 0501b98a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -7,7 +7,6 @@ const { status, context } = defineProps<{
}>() }>()
const isDM = $computed(() => status.visibility === 'direct') const isDM = $computed(() => status.visibility === 'direct')
const isSelf = $computed(() => status.account.id === currentUser.value?.account.id)
const isDetails = $computed(() => context === 'details') const isDetails = $computed(() => context === 'details')
// Content Filter logic // Content Filter logic
@ -25,8 +24,7 @@ const isFiltered = $computed(() => filterPhrase && (context && context !== 'deta
space-y-3 space-y-3
:class="{ :class="{
'pt2 pb0.5 px3.5 br2 border-1 rounded-3 rounded-tl-none': isDM, 'pt2 pb0.5 px3.5 br2 border-1 rounded-3 rounded-tl-none': isDM,
'bg-fade border-primary-light': isDM && !isSelf, 'bg-fade border-primary-light': isDM,
'bg-code border-base': isDM && isSelf,
}" }"
> >
<StatusSpoiler :enabled="status.sensitive || isFiltered" :filter="isFiltered"> <StatusSpoiler :enabled="status.sensitive || isFiltered" :filter="isFiltered">