Skip to content

Commit

Permalink
add a root <Text> element to log files to fix wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwesselman committed Jun 4, 2024
1 parent 347011c commit 7b1ab59
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,17 @@ const ConcurrentOutput: FunctionComponent<ConcurrentOutputProps> = ({
<Box flexDirection="column" key={index}>
{chunk.lines.map((line, index) => (
<Box key={index} flexDirection="row">
{showTimestamps ? (
<Text>
{showTimestamps ? (
<Text>
{currentTime()} {lineVertical}{' '}
</Text>
) : null}
<Text color={chunk.color}>{formatPrefix(chunk.prefix)}</Text>
<Text>
{currentTime()} {lineVertical}{' '}
{' '}
{lineVertical} {line}
</Text>
) : null}
<Text color={chunk.color}>{formatPrefix(chunk.prefix)}</Text>
<Text>
{' '}
{lineVertical} {line}
</Text>
</Box>
))}
Expand Down

0 comments on commit 7b1ab59

Please sign in to comment.