mirror of
https://github.com/elk-zone/elk
synced 2024-11-24 07:06:08 +09:00
fix: spacing of status card without content
This commit is contained in:
parent
03785846eb
commit
2d16c4868e
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user