### What problem does this PR solve? fix: the content in the chunk card will overflow #1628 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)tags/v0.9.0
| .contentEllipsis { | .contentEllipsis { | ||||
| .multipleLineEllipsis(3); | .multipleLineEllipsis(3); | ||||
| } | } | ||||
| .contentText { | |||||
| word-break: break-all; | |||||
| } | |||||
| .chunkCard { | .chunkCard { | ||||
| width: 100%; | width: 100%; |
| dangerouslySetInnerHTML={{ | dangerouslySetInnerHTML={{ | ||||
| __html: DOMPurify.sanitize(item.content_with_weight), | __html: DOMPurify.sanitize(item.content_with_weight), | ||||
| }} | }} | ||||
| className={classNames({ | |||||
| className={classNames(styles.contentText, { | |||||
| [styles.contentEllipsis]: textMode === ChunkTextMode.Ellipse, | [styles.contentEllipsis]: textMode === ChunkTextMode.Ellipse, | ||||
| })} | })} | ||||
| ></div> | ></div> |