未验证 提交 3b752417 编写于 作者: P Peter Pan 提交者: GitHub

chore: set server address (#817)

* chore: set server address

* chore: add bce-python-sdk to requirements

* fix: limit max length of runs in chart tooltip table

* fix: coding style violation
Co-authored-by: NNiandalu <Niandalu@users.noreply.github.com>
上级 c43ba89f
...@@ -21,6 +21,9 @@ const Wrapper = styled.div` ...@@ -21,6 +21,9 @@ const Wrapper = styled.div`
> span { > span {
display: inline-block; display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
} }
...@@ -28,11 +31,6 @@ const Wrapper = styled.div` ...@@ -28,11 +31,6 @@ const Wrapper = styled.div`
font-size: 1.166666667em; font-size: 1.166666667em;
font-weight: bold; font-weight: bold;
padding: 0 0.285714286em; padding: 0 0.285714286em;
&.run > span {
min-width: 4.285714286em;
max-width: 12.857142857em;
}
} }
td { td {
...@@ -44,6 +42,11 @@ const Wrapper = styled.div` ...@@ -44,6 +42,11 @@ const Wrapper = styled.div`
vertical-align: middle; vertical-align: middle;
background-color: currentColor; background-color: currentColor;
} }
&.run > span {
min-width: 4.285714286em;
max-width: 8.571428572em;
}
} }
} }
`; `;
...@@ -85,7 +88,7 @@ const TooltipTable: FunctionComponent<TooltipTableProps> = ({run, runs, columns, ...@@ -85,7 +88,7 @@ const TooltipTable: FunctionComponent<TooltipTableProps> = ({run, runs, columns,
<span style={{color: runs[j]?.colors[0]}}></span> <span style={{color: runs[j]?.colors[0]}}></span>
</td> </td>
<td className="run"> <td className="run">
<span>{runs[j]?.label}</span> <span title={runs[j]?.label}>{runs[j]?.label}</span>
</td> </td>
{row.map((cell, k) => ( {row.map((cell, k) => (
<td key={k}> <td key={k}>
......
...@@ -7,3 +7,4 @@ flask >= 1.1.1 ...@@ -7,3 +7,4 @@ flask >= 1.1.1
Flask-Babel >= 1.0.0 Flask-Babel >= 1.0.0
six >= 1.14.0 six >= 1.14.0
protobuf >= 3.11.0 protobuf >= 3.11.0
bce-python-sdk
...@@ -17,7 +17,7 @@ import os ...@@ -17,7 +17,7 @@ import os
import json import json
VDL_SERVER = "http://paddlepaddle.org.cn/visualdl" VDL_SERVER = "https://paddlepaddle.org.cn/paddle/visualdl/service/server"
default_vdl_config = { default_vdl_config = {
'server_url': VDL_SERVER 'server_url': VDL_SERVER
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册