Fix answers not wrapping in cards
This commit is contained in:
parent
0a63a0ae1f
commit
d6a9b89c43
|
@ -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