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
10cf8fd3
Commit
10cf8fd3
authored
May 22, 2017
by
yann300
Committed by
GitHub
May 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #554 from ninabreznik/padding_contract_tab
Padding on contract tab
parents
ae9b4896
52f8fc29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
style-guide.js
src/app/style-guide.js
+1
-1
universal-dapp.js
src/universal-dapp.js
+8
-6
No files found.
src/app/style-guide.js
View file @
10cf8fd3
...
...
@@ -93,7 +93,7 @@ function styleGuide () {
.title-box {
margin-bottom : 0.4em;
padding :
1
em;
padding :
.3
em;
background-color : transparent;
font-weight : bold;
display : flex;
...
...
src/universal-dapp.js
View file @
10cf8fd3
...
...
@@ -54,9 +54,10 @@ var css = csjs`
var
cssInstance
=
csjs
`
.title {
display: flex;
justify-content: center;
justify-content: space-around;
align-items: center;
margin-bottom: 1em;
padding:
1
em;
padding:
.3
em;
font-size: .95em;
cursor: pointer;
background-color:
${
styles
.
colors
.
violet
}
;
...
...
@@ -89,12 +90,11 @@ var cssInstance = csjs`
border: 1px dotted
${
styles
.
colors
.
grey
}
;
border-radius: 5px;
text-align: center;
padding:
1
em .3em;
padding:
.3
em .3em;
min-width: 30%;
}
.copy:hover{
background-color:
${
styles
.
colors
.
lightGrey
}
;
opacity: .8;
opacity: .7;
}
`
...
...
@@ -349,9 +349,11 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
var
context
=
self
.
executionContext
.
isVM
()
?
'memory'
:
'blockchain'
address
=
(
address
.
slice
(
0
,
2
)
===
'0x'
?
''
:
'0x'
)
+
address
.
toString
(
'hex'
)
var
len
=
address
.
length
var
shortAddress
=
address
.
slice
(
0
,
5
)
+
'...'
+
address
.
slice
(
len
-
5
,
len
)
var
title
=
yo
`
<div class="
${
cssInstance
.
title
}
">
<div class="
${
cssInstance
.
titleText
}
" onclick=
${
toggleClass
}
>
${
contract
.
name
}
at
${
a
ddress
}
(
${
context
}
) </div>
<div class="
${
cssInstance
.
titleText
}
" onclick=
${
toggleClass
}
>
${
contract
.
name
}
at
${
shortA
ddress
}
(
${
context
}
) </div>
<div class="
${
cssInstance
.
copy
}
" onclick=
${
copyToClipboard
}
> <i class="fa fa-clipboard" aria-hidden="true"></i> Copy address </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