Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
3d4f122a
Unverified
Commit
3d4f122a
authored
Jun 24, 2020
by
Lijiaoa
Committed by
GitHub
Jun 24, 2020
Browse files
fix metric style (#2571)
parent
a5764016
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+7
-3
src/webui/src/static/style/table.scss
src/webui/src/static/style/table.scss
+6
-0
No files found.
src/webui/src/components/trial-detail/TableList.tsx
View file @
3d4f122a
...
...
@@ -3,7 +3,7 @@ import axios from 'axios';
import
ReactEcharts
from
'
echarts-for-react
'
;
import
{
Stack
,
Dropdown
,
DetailsList
,
IDetailsListProps
,
DetailsListLayoutMode
,
PrimaryButton
,
Modal
,
IDropdownOption
,
IColumn
,
Selection
,
SelectionMode
,
IconButton
PrimaryButton
,
Modal
,
IDropdownOption
,
IColumn
,
Selection
,
SelectionMode
,
IconButton
,
TooltipHost
}
from
'
office-ui-fabric-react
'
;
import
{
LineChart
,
blocked
,
copy
}
from
'
../Buttons/Icon
'
;
import
{
MANAGER_IP
,
COLUMNPro
}
from
'
../../static/const
'
;
...
...
@@ -149,7 +149,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
isResizable
:
true
,
data
:
'
number
'
,
onColumnClick
:
this
.
onColumnClick
,
onRender
:
(
item
):
React
.
ReactNode
=>
<
div
>
{
item
.
formattedLatestAccuracy
}
</
div
>
onRender
:
(
item
):
React
.
ReactNode
=>
<
TooltipHost
content
=
{
item
.
formattedLatestAccuracy
}
>
<
div
className
=
"ellipsis"
>
{
item
.
formattedLatestAccuracy
}
</
div
>
</
TooltipHost
>
};
SequenceIdColumnConfig
:
any
=
{
...
...
@@ -556,7 +558,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
other
=
accDictionary
[
item
].
toString
();
}
return
(
<
div
>
{
other
}
</
div
>
<
TooltipHost
content
=
{
other
}
>
<
div
className
=
"ellipsis"
>
{
other
}
</
div
>
</
TooltipHost
>
);
}
});
...
...
src/webui/src/static/style/table.scss
View file @
3d4f122a
...
...
@@ -11,6 +11,12 @@
}
}
.ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
#succeTable
,
#tableList
{
.commonTableStyle
.leftTitle
div
{
text-align
:
left
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment