feat(logs): preserve whitespace in log line

This commit is contained in:
Nicholas Penree
2024-12-13 09:15:56 -05:00
parent 4311ba93f3
commit e5d5a98bab

View File

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