Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc41261c

Browse files
fix: Remove unexpected break lines when copy logs (coder#3492)
1 parent351d55e commitc41261c

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
<divclassName={combineClasses([className,styles.root])}>
2222
{lines.map((line,idx)=>(
2323
<divclassName={styles.line}key={idx}>
24-
<divclassName={styles.time}>{dayjs(line.time).format(`HH:mm:ss.SSS`)}</div>
25-
<div>{line.output}</div>
24+
<spanclassName={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)

[8]ページ先頭

©2009-2025 Movatter.jp