mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Exclude time column when selecting build log (#3673)
Closes #2962.
This commit is contained in:
@@ -22,7 +22,7 @@ export const Logs: FC<React.PropsWithChildren<LogsProps>> = ({ lines, className
|
||||
{lines.map((line, idx) => (
|
||||
<div className={styles.line} key={idx}>
|
||||
<span className={styles.time}>{dayjs(line.time).format(`HH:mm:ss.SSS`)}</span>
|
||||
|
||||
<span className={styles.space}> </span>
|
||||
<span>{line.output}</span>
|
||||
</div>
|
||||
))}
|
||||
@@ -45,7 +45,11 @@ const useStyles = makeStyles((theme) => ({
|
||||
line: {
|
||||
whiteSpace: "nowrap",
|
||||
},
|
||||
space: {
|
||||
userSelect: "none",
|
||||
},
|
||||
time: {
|
||||
userSelect: "none",
|
||||
width: theme.spacing(12.5),
|
||||
display: "inline-block",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user