fix: text came out of the parent div

This commit is contained in:
190km
2024-12-13 18:29:18 +01:00
parent e5d5a98bab
commit 6773458da3

View File

@@ -103,9 +103,9 @@ export function TerminalLine({ log, noTimestamp, searchTerm }: LogLineProps) {
{type} {type}
</Badge> </Badge>
</div> </div>
<pre className="dark:text-gray-200 font-mono text-foreground whitespace-pre"> <span className="dark:text-gray-200 font-mono text-foreground whitespace-pre-wrap break-words">
{searchTerm ? highlightMessage(message, searchTerm) : message} {searchTerm ? highlightMessage(message, searchTerm) : message}
</pre> </span>
</div> </div>
); );
} }