[questions][ui] show newlines in question post (#484)

This commit is contained in:
Jeff Sieu
2022-10-31 18:10:10 +08:00
committed by GitHub
parent 410053425c
commit 2c94691b07

View File

@ -216,7 +216,11 @@ export default function BaseQuestionCard({
/>
)}
</div>
<p className={clsx(truncateContent && 'line-clamp-2 text-ellipsis')}>
<p
className={clsx(
'whitespace-pre-line',
truncateContent && 'line-clamp-2 text-ellipsis',
)}>
{content}
</p>
{!showReceivedForm &&