fix: spacing of status card without content
parent
03785846eb
commit
2d16c4868e
|
@ -6,14 +6,16 @@ const { status, withAction = true } = defineProps<{
|
||||||
withAction?: boolean
|
withAction?: boolean
|
||||||
}>()
|
}>()
|
||||||
const { translation } = useTranslation(status)
|
const { translation } = useTranslation(status)
|
||||||
|
const content = $computed(() => translation.visible ? translation.text : status.content)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }">
|
<div class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }">
|
||||||
<ContentRich
|
<ContentRich v-if="content"
|
||||||
:content="translation.visible ? translation.text : status.content"
|
:content="content"
|
||||||
:emojis="status.emojis"
|
:emojis="status.emojis"
|
||||||
/>
|
/>
|
||||||
|
<div v-else h-3 />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue