1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-28 06:48:14 +09:00

fix: spacing of status card without content

This commit is contained in:
patak 2022-11-26 20:06:07 +01:00
parent 03785846eb
commit 2d16c4868e

View File

@ -6,14 +6,16 @@ const { status, withAction = true } = defineProps<{
withAction?: boolean
}>()
const { translation } = useTranslation(status)
const content = $computed(() => translation.visible ? translation.text : status.content)
</script>
<template>
<div class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }">
<ContentRich
:content="translation.visible ? translation.text : status.content"
<ContentRich v-if="content"
:content="content"
:emojis="status.emojis"
/>
<div v-else h-3 />
</div>
</template>