Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix missing log line space
  • Loading branch information
BrunoQuaresma committed Mar 13, 2024
commit 53dcd3584901ed82a12bb907050cfa9bdde4935a
11 changes: 4 additions & 7 deletions site/src/components/Logs/Logs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Interpolation, Theme } from "@emotion/react";
import dayjs from "dayjs";
import type { FC } from "react";
import { LogLinePrefix, LogLineSpace, LogLine, type Line } from "./LogLine";
import { LogLinePrefix, LogLine, type Line } from "./LogLine";

export const DEFAULT_LOG_LINE_SIDE_PADDING = 24;

Expand All @@ -22,12 +22,9 @@ export const Logs: FC<LogsProps> = ({
{lines.map((line, idx) => (
<LogLine key={idx} level={line.level}>
{!hideTimestamps && (
<>
<LogLinePrefix>
{dayjs(line.time).format(`HH:mm:ss.SSS`)}
</LogLinePrefix>
<LogLineSpace />
</>
<LogLinePrefix>
{dayjs(line.time).format(`HH:mm:ss.SSS`)}
</LogLinePrefix>
)}
<span>{line.output}</span>
</LogLine>
Expand Down