fix: include media within content warning
This commit is contained in:
parent
a5b9f25777
commit
019a36c9bb
4 changed files with 36 additions and 20 deletions
|
@ -5,21 +5,11 @@ const { status } = defineProps<{
|
|||
status: Status
|
||||
}>()
|
||||
const { translation } = useTranslation(status)
|
||||
|
||||
const [showContent, toggleContent] = $(useToggle(!status.sensitive))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="status-body" whitespace-pre-wrap break-words>
|
||||
<template v-if="status.sensitive">
|
||||
{{ status.spoilerText }}
|
||||
<button btn-outline px-2 py-1 text-3 @click="toggleContent()">
|
||||
{{ showContent ? 'Show less' : 'Show more' }}
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<ContentRichSetup
|
||||
v-if="showContent"
|
||||
:content="translation.visible ? translation.text : status.content"
|
||||
:emojis="status.emojis"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue