Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c41261c

Browse files
fix: Remove unexpected break lines when copy logs (#3492)
1 parent 351d55e commit c41261c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

site/src/components/Logs/Logs.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ export const Logs: FC<LogsProps> = ({ lines, className = "" }) => {
2121
<div className={combineClasses([className, styles.root])}>
2222
{lines.map((line, idx) => (
2323
<div className={styles.line} key={idx}>
24-
<div className={styles.time}>{dayjs(line.time).format(`HH:mm:ss.SSS`)}</div>
25-
<div>{line.output}</div>
24+
<span className={styles.time}>{dayjs(line.time).format(`HH:mm:ss.SSS`)}</span>
25+
&nbsp;&nbsp;&nbsp;&nbsp;
26+
<span>{line.output}</span>
2627
</div>
2728
))}
2829
</div>
@@ -42,12 +43,10 @@ const useStyles = makeStyles((theme) => ({
4243
overflowX: "auto",
4344
},
4445
line: {
45-
display: "flex",
46-
alignItems: "baseline",
46+
whiteSpace: "nowrap",
4747
},
4848
time: {
4949
width: theme.spacing(12.5),
50-
marginRight: theme.spacing(3),
51-
flexShrink: 0,
50+
display: "inline-block",
5251
},
5352
}))

0 commit comments

Comments
 (0)