Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
bdf6b8dd
Unverified
Commit
bdf6b8dd
authored
May 17, 2019
by
yann300
Committed by
GitHub
May 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1981 from ethereum/master_l
added bootstrap alert to tooltip
parents
09baddce
6d56bdb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
tooltip-styles.js
src/app/ui/styles/tooltip-styles.js
+1
-2
tooltip.js
src/app/ui/tooltip.js
+1
-1
No files found.
src/app/ui/styles/tooltip-styles.js
View file @
bdf6b8dd
...
@@ -7,13 +7,12 @@ var css = csjs`
...
@@ -7,13 +7,12 @@ var css = csjs`
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
position: fixed;
position: fixed;
color: var(--primary)
min-height: 50px;
min-height: 50px;
padding: 16px 24px 12px;
padding: 16px 24px 12px;
border-radius: 3px;
border-radius: 3px;
bottom: -300;
bottom: -300;
left: 40%;
left: 40%;
font-size: 1
2
px;
font-size: 1
4
px;
text-align: center;
text-align: center;
bottom: 0;
bottom: 0;
}
}
...
...
src/app/ui/tooltip.js
View file @
bdf6b8dd
...
@@ -29,7 +29,7 @@ class Toaster {
...
@@ -29,7 +29,7 @@ class Toaster {
const
shortTooltipText
=
tooltipText
.
length
>
201
?
tooltipText
.
substring
(
0
,
200
)
+
'...'
:
tooltipText
const
shortTooltipText
=
tooltipText
.
length
>
201
?
tooltipText
.
substring
(
0
,
200
)
+
'...'
:
tooltipText
this
.
tooltip
=
yo
`
this
.
tooltip
=
yo
`
<div class="
${
css
.
tooltip
}
bg-secondary
" onmouseenter=
${()
=>
{
over
()
}}
onmouseleave
=
$
{()
=>
{
out
()
}}
>
<div class="
${
css
.
tooltip
}
alert alert-info
" onmouseenter=
${()
=>
{
over
()
}}
onmouseleave
=
$
{()
=>
{
out
()
}}
>
<
span
>
$
{
shortTooltipText
}
<button class="btn btn-secondary btn-sm" onclick=
${()
=>
{
modal
.
alert
(
tooltipText
)
}}
>
show
full
message
<
/button></
span
>
<
span
>
$
{
shortTooltipText
}
<button class="btn btn-secondary btn-sm" onclick=
${()
=>
{
modal
.
alert
(
tooltipText
)
}}
>
show
full
message
<
/button></
span
>
$
{
action
}
$
{
action
}
</div>`
</div>`
...
...
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