1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 15:29:59 +00:00

fix(status): add word wrap

closes #63
This commit is contained in:
三咲智子 2022-11-25 16:43:47 +08:00
parent a253a222ec
commit 727bef6066
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ const { translation } = useTranslation(status)
</script> </script>
<template> <template>
<div class="status-body"> <div class="status-body" whitespace-pre-wrap break-words>
<ContentRichSetup :content="translation.visible ? translation.text : status.content" :emojis="status.emojis" /> <ContentRichSetup :content="translation.visible ? translation.text : status.content" :emojis="status.emojis" />
</div> </div>
</template> </template>

View file

@ -85,7 +85,7 @@ const timeago = useTimeAgo(() => status.createdAt, {
<AccountAvatar mt1 w-12 h-12 :account="status.account" /> <AccountAvatar mt1 w-12 h-12 :account="status.account" />
</div> </div>
</div> </div>
<div flex="~ col 1"> <div flex="~ col 1" w-0>
<div flex> <div flex>
<StatusAccountDetails :account="status.account" /> <StatusAccountDetails :account="status.account" />
<div flex-auto /> <div flex-auto />