fix(status): add word wrap

closes #63
zio/stable
三咲智子 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 />