Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
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
Hide 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';
...
@@ -3,7 +3,7 @@ import axios from 'axios';
import
ReactEcharts
from
'
echarts-for-react
'
;
import
ReactEcharts
from
'
echarts-for-react
'
;
import
{
import
{
Stack
,
Dropdown
,
DetailsList
,
IDetailsListProps
,
DetailsListLayoutMode
,
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
'
;
}
from
'
office-ui-fabric-react
'
;
import
{
LineChart
,
blocked
,
copy
}
from
'
../Buttons/Icon
'
;
import
{
LineChart
,
blocked
,
copy
}
from
'
../Buttons/Icon
'
;
import
{
MANAGER_IP
,
COLUMNPro
}
from
'
../../static/const
'
;
import
{
MANAGER_IP
,
COLUMNPro
}
from
'
../../static/const
'
;
...
@@ -149,7 +149,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -149,7 +149,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
isResizable
:
true
,
isResizable
:
true
,
data
:
'
number
'
,
data
:
'
number
'
,
onColumnClick
:
this
.
onColumnClick
,
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
=
{
SequenceIdColumnConfig
:
any
=
{
...
@@ -556,7 +558,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -556,7 +558,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
other
=
accDictionary
[
item
].
toString
();
other
=
accDictionary
[
item
].
toString
();
}
}
return
(
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 @@
...
@@ -11,6 +11,12 @@
}
}
}
}
.ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
#succeTable
,
#tableList
{
#succeTable
,
#tableList
{
.commonTableStyle
.leftTitle
div
{
.commonTableStyle
.leftTitle
div
{
text-align
:
left
;
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