fix performance, styling

This commit is contained in:
Tom (plebeius.eth)
2024-06-26 21:27:28 +02:00
parent 5835a087c9
commit dc6ea9e982
3 changed files with 27 additions and 25 deletions
+2 -2
View File
@@ -197,8 +197,8 @@ const PostMessage = ({ post }: PostProps) => {
<span className={styles.editedInfo}>
{showOriginal && <Markdown content={original?.content} />}
<br />
{t('comment_edited_at_timestamp', { timestamp: getFormattedDate(edit?.timestamp), interpolation: { escapeValue: false } })}
{reason && <> {t('reason_reason', { reason: reason, interpolation: { escapeValue: false } })}</>}
{t('comment_edited_at_timestamp', { timestamp: getFormattedDate(edit?.timestamp), interpolation: { escapeValue: false } })}{' '}
{reason && <>{t('reason_reason', { reason: reason, interpolation: { escapeValue: false } })} </>}
{showOriginal ? (
<Trans
i18nKey={'click_here_to_hide_original'}
+2 -2
View File
@@ -154,8 +154,8 @@ const PostMessageMobile = ({ post }: PostProps) => {
<span className={styles.editedInfo}>
{showOriginal && <Markdown content={original?.content} />}
<br />
{t('comment_edited_at_timestamp', { timestamp: getFormattedDate(edit?.timestamp), interpolation: { escapeValue: false } })}
{reason && <> {t('reason_reason', { reason: reason, interpolation: { escapeValue: false } })}</>}
{t('comment_edited_at_timestamp', { timestamp: getFormattedDate(edit?.timestamp), interpolation: { escapeValue: false } })}{' '}
{reason && <>{t('reason_reason', { reason: reason, interpolation: { escapeValue: false } })} </>}
{showOriginal ? (
<Trans
i18nKey={'click_here_to_hide_original'}