{React.Children.map(children, (n, i) => {
- return
.content>.property>.label {
background-color: rgba(51, 51, 51, 100);
- width: 60px;
+ width: 100px;
padding: 0 4px;
display: inline-flex;
align-items: center;
diff --git a/web/src/ui/timeline/Timeline.jsx b/web/src/ui/timeline/Timeline.jsx
index fdc7b009c8829be13cad77685b9648d2fea38950..81a665d1f1bf6040fae39361069889c697c9faa3 100644
--- a/web/src/ui/timeline/Timeline.jsx
+++ b/web/src/ui/timeline/Timeline.jsx
@@ -191,7 +191,7 @@ class Timeline extends React.Component {
const canvas = this.canvasRef.current;
canvas.style.width = width + margin * 2 + 'px';
- canvas.width = canvas.clientWidth;
+ canvas.width = 3600; // 原本是等于canvas.clientWidth,但是不知道为啥显示零,直接修改数值
canvas.height = 32;
const context = canvas.getContext('2d');
diff --git a/web/src/ui/timeline/css/Timeline.css b/web/src/ui/timeline/css/Timeline.css
index 0fa02e5d052acaab8f771aa98a45686436a8479a..669d15e60b691e633876eb22e47415d14bb3741b 100644
--- a/web/src/ui/timeline/css/Timeline.css
+++ b/web/src/ui/timeline/css/Timeline.css
@@ -4,6 +4,7 @@
font-size: 12px;
display: flex;
flex-direction: column;
+ background-color: white;
}
.Timeline>.controls>.IconButton {
@@ -40,7 +41,7 @@
position: absolute;
width: 100px;
height: 32px;
- background: #fff;
+ /*background: #fff;*/
z-index: 10;
}