Skip to content

Commit 4bd110b

Browse files
authored
Merge pull request #1820 from mertbagt/wordBreak
Testimony wordBreak
2 parents 9da11f9 + e6f08b4 commit 4bd110b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/search/testimony/TestimonyHit.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ const TestimonyResult = ({ hit }: { hit: Hit<Testimony> }) => {
114114
<h6 style={{ color: "var(--bs-blue)", fontWeight: 600 }}>
115115
{bill?.content.Title}
116116
</h6>
117-
<p>"{trimContent(hit.content, 500)}"</p>
117+
<p style={{ wordBreak: "break-all" }}>
118+
"{trimContent(hit.content, 500)}"
119+
</p>
118120
<div style={{ display: "flex", justifyContent: "space-between" }}>
119121
{/* {hit.content.trim().length > 0 && <a className="w-20">Read More</a>} */}
120122
<span style={{ marginLeft: "auto" }}>{`Posted ${date}`}</span>

0 commit comments

Comments
 (0)