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
e54f9dbd
Unverified
Commit
e54f9dbd
authored
Oct 22, 2020
by
Lijiaoa
Committed by
GitHub
Oct 22, 2020
Browse files
[v1.9 bug bash] fix no-data mode table tooltip align center question (#3018)
parent
e0995574
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
src/webui/src/components/overview/table/SuccessTable.tsx
src/webui/src/components/overview/table/SuccessTable.tsx
+6
-6
src/webui/src/static/style/succTable.scss
src/webui/src/static/style/succTable.scss
+7
-9
No files found.
src/webui/src/components/overview/table/SuccessTable.tsx
View file @
e54f9dbd
...
@@ -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
...
...
src/webui/src/static/style/succTable.scss
View file @
e54f9dbd
...
@@ -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
;
}
}
}
}
}
...
...
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