mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: Remove unexpected break lines when copy logs (#3492)
This commit is contained in:
@@ -21,8 +21,9 @@ export const Logs: FC<LogsProps> = ({ lines, className = "" }) => {
|
||||
<div className={combineClasses([className, styles.root])}>
|
||||
{lines.map((line, idx) => (
|
||||
<div className={styles.line} key={idx}>
|
||||
<div className={styles.time}>{dayjs(line.time).format(`HH:mm:ss.SSS`)}</div>
|
||||
<div>{line.output}</div>
|
||||
<span className={styles.time}>{dayjs(line.time).format(`HH:mm:ss.SSS`)}</span>
|
||||
|
||||
<span>{line.output}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
@@ -42,12 +43,10 @@ const useStyles = makeStyles((theme) => ({
|
||||
overflowX: "auto",
|
||||
},
|
||||
line: {
|
||||
display: "flex",
|
||||
alignItems: "baseline",
|
||||
whiteSpace: "nowrap",
|
||||
},
|
||||
time: {
|
||||
width: theme.spacing(12.5),
|
||||
marginRight: theme.spacing(3),
|
||||
flexShrink: 0,
|
||||
display: "inline-block",
|
||||
},
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user