fix: preserve spaces in localized text

This commit is contained in:
Shusui MOYATANI
2024-06-30 03:15:57 +09:00
parent e0724f8fc9
commit ef120f531d
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ const ReactionDisplay: Component<ReactionDisplayProps> = (props) => {
>
<UserDisplayName pubkey={props.event.pubkey} />
</button>
<span class="shrink-0">{i18n.t('notification.reacted')}</span>
<span class="shrink-0 whitespace-pre">{i18n.t('notification.reacted')}</span>
</div>
</div>
<div class="text-xs">{formatDate(event().createdAtAsDate())}</div>

View File

@@ -38,7 +38,7 @@ const Repost: Component<RepostProps> = (props) => {
>
<UserDisplayName pubkey={props.event.pubkey} />
</button>
<span class="shrink-0">{i18n.t('notification.reposted')}</span>
<span class="shrink-0 whitespace-pre">{i18n.t('notification.reposted')}</span>
</div>
<div class="text-xs">{formatDate(event().createdAtAsDate())}</div>
</div>