Skip to content

Commit b0af57c

Browse files
authored
fix: replace br with space instead of nothing, always rounded corners (#447)
1 parent 8136629 commit b0af57c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/soapbox/features/conversations/components/conversation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Conversation: React.FC<IConversation> = ({ conversationId, onMoveUp, onMov
5959

6060
return (
6161
<HotKeys handlers={handlers} data-testid='status'>
62-
<div onClick={handleClick} role='button' tabIndex={0} className={`bg-white dark:bg-slate-800 px-4 py-6 sm:shadow-sm dark:shadow-inset sm:p-5 sm:rounded-xl ${className}`}>
62+
<div onClick={handleClick} role='button' tabIndex={0} className={`bg-white dark:bg-slate-800 px-4 py-6 sm:shadow-sm dark:shadow-inset sm:p-5 rounded-xl ${className}`}>
6363
<div className='flex justify-between gap-3'>
6464
<div className='flex gap-2 grow'>
6565
{accounts.map((a) => <Account withLinkToProfile={false} account={a} />)}
@@ -71,7 +71,7 @@ const Conversation: React.FC<IConversation> = ({ conversationId, onMoveUp, onMov
7171
/>
7272
</div>
7373
<div className='flex justify-between mt-3 items-end gap-2'>
74-
<div style={{ 'whiteSpace': 'nowrap' }} className='overflow-x-hidden text-ellipsis text-gray-700 dark:text-gray-300' dangerouslySetInnerHTML={{ __html: lastStatus.contentHtml.replace(/<br ?\/?>/g, '') }} />
74+
<div style={{ 'whiteSpace': 'nowrap' }} className='overflow-x-hidden text-ellipsis text-gray-700 dark:text-gray-300' dangerouslySetInnerHTML={{ __html: lastStatus.contentHtml.replace(/<br ?\/?>/g, ' ') }} />
7575
<div className='text-gray-300 dark:text-gray-300 text-xs'>
7676
{new Date(lastStatus.get('created_at')).toLocaleDateString(undefined, { day: '2-digit', month: '2-digit', year: 'numeric' })}
7777
</div>

0 commit comments

Comments
 (0)