Quellcode durchsuchen

fix: the content in the chunk card will overflow #1628 (#1629)

### 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
balibabu vor 1 Jahr
Ursprung
Commit
eb42adc818
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden

+ 3
- 0
web/src/pages/add-knowledge/components/knowledge-chunk/components/chunk-card/index.less Datei anzeigen

@@ -17,6 +17,9 @@
.contentEllipsis {
.multipleLineEllipsis(3);
}
.contentText {
word-break: break-all;
}

.chunkCard {
width: 100%;

+ 1
- 1
web/src/pages/add-knowledge/components/knowledge-chunk/components/chunk-card/index.tsx Datei anzeigen

@@ -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>

Laden…
Abbrechen
Speichern