Skip to content

Commit

Permalink
fix: the content in the chunk card will overflow #1628 (#1629)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
cike8899 authored Jul 22, 2024
1 parent a4d230f commit eb42adc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
.contentEllipsis {
.multipleLineEllipsis(3);
}
.contentText {
word-break: break-all;
}

.chunkCard {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const ChunkCard = ({
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(item.content_with_weight),
}}
className={classNames({
className={classNames(styles.contentText, {
[styles.contentEllipsis]: textMode === ChunkTextMode.Ellipse,
})}
></div>
Expand Down

0 comments on commit eb42adc

Please sign in to comment.