Skip to content

Commit c2062c8

Browse files
authored
Merge pull request #118 from easyops-cn/steve/ai-portal
fix(): add basic table style
2 parents b3aaa69 + fa93b51 commit c2062c8

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

bricks/ai-portal/src/cruise-canvas/NodeJob/NodeJob.module.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,27 @@
420420
}
421421
}
422422

423+
.node-job {
424+
table {
425+
display: block;
426+
width: 100%;
427+
width: max-content;
428+
max-width: 100%;
429+
overflow: auto;
430+
border-collapse: collapse;
431+
}
432+
433+
tr {
434+
border-top: 1px solid #ccd1de;
435+
}
436+
437+
td,
438+
th {
439+
border: 1px solid #ccd1de;
440+
padding: 6px 13px;
441+
}
442+
}
443+
423444
.node-job {
424445
*::-webkit-scrollbar {
425446
width: 5px; /* 垂直滚动条宽度 */

mock-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class MockTask {
9090
parts: [
9191
{
9292
type: "text",
93-
text: "准备创建 XX 系统",
93+
text: "准备创建 XX 系统\n\n| Name | Age | Profile |\n| - | - | - |\n| Tom | 23 | Playing basketball, hiking, etc,. |\n| Lucy | 21 | Reading, music, movies, ... |",
9494
},
9595
],
9696
},

0 commit comments

Comments
 (0)