Fix answers not wrapping in cards
This commit is contained in:
parent
a19741d927
commit
997a858629
|
@ -1,3 +1,4 @@
|
|||
import clsx from 'clsx'
|
||||
import { Answer } from '../../common/answer'
|
||||
import { getProbability } from '../../common/calculate'
|
||||
import {
|
||||
|
@ -126,7 +127,14 @@ export function AnswerLabel(props: {
|
|||
truncated = text.slice(0, 75) + '...'
|
||||
}
|
||||
|
||||
return <span className={className}>{truncated}</span>
|
||||
return (
|
||||
<span
|
||||
style={{ wordBreak: 'break-word' }}
|
||||
className={clsx('whitespace-pre-line break-words', className)}
|
||||
>
|
||||
{truncated}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
function FreeResponseAnswerToolTip(props: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user