1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-07 01:19:57 +00:00

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

This commit is contained in:
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

View file

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