Unverified Commit 3d4f122a authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

fix metric style (#2571)

parent a5764016
...@@ -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>
); );
} }
}); });
......
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment