mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00
### 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)
This commit is contained in:
parent
a4d230f12b
commit
eb42adc818
@ -17,6 +17,9 @@
|
|||||||
.contentEllipsis {
|
.contentEllipsis {
|
||||||
.multipleLineEllipsis(3);
|
.multipleLineEllipsis(3);
|
||||||
}
|
}
|
||||||
|
.contentText {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
.chunkCard {
|
.chunkCard {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -81,7 +81,7 @@ const ChunkCard = ({
|
|||||||
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user