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

[v1.9 bug bash] fix no-data mode table tooltip align center question (#3018)

parent e0995574
...@@ -63,13 +63,12 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState> ...@@ -63,13 +63,12 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState>
} }
tooltipStr = ( tooltipStr = (
<div> <React.Fragment>
<p>The experiment is running, please wait for the final metric patiently.</p> The experiment is running, please wait for the final metric patiently. You could also find status of trial
<div className='link'> job with <span>{DETAILTABS}</span> button.
You could also find status of trial job with <span>{DETAILTABS}</span> button. </React.Fragment>
</div>
</div>
); );
columns = [ columns = [
{ {
name: 'Trial No.', name: 'Trial No.',
...@@ -154,6 +153,7 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState> ...@@ -154,6 +153,7 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState>
render(): React.ReactNode { render(): React.ReactNode {
const { columns, source } = this.state; const { columns, source } = this.state;
const isNoneData = source.length === 0 ? true : false; const isNoneData = source.length === 0 ? true : false;
return ( return (
<div id='succTable'> <div id='succTable'>
<DetailsList <DetailsList
......
...@@ -5,17 +5,15 @@ ...@@ -5,17 +5,15 @@
position: relative; position: relative;
.succTable-tooltip { .succTable-tooltip {
width: 90%;
position: absolute; position: absolute;
top: 40%; left: 50%;
left: 5%; top: 50%;
transform: translate(-50%, -50%);
.link { a {
margin-left: 15px; font-weight: 500;
color: blue;
a {
font-weight: 500;
color: blue;
}
} }
} }
......
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