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
3e71fbe2
Commit
3e71fbe2
authored
Apr 18, 2019
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to universal dapp
parent
61144522
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
universal-dapp-styles.js
src/universal-dapp-styles.js
+12
-3
universal-dapp-ui.js
src/universal-dapp-ui.js
+3
-3
No files found.
src/universal-dapp-styles.js
View file @
3e71fbe2
...
...
@@ -17,7 +17,8 @@ var css = csjs`
line-height: initial;
overflow: visible;
margin-bottom: 0px;
padding-left: 10px;
padding-left: 0px;
padding-right: 10px;
}
.noInstancesText {
...
...
@@ -29,7 +30,13 @@ var css = csjs`
.titleText {
/* margin-right: 1em; */
word-break: break-word;
min-width: 230px;
min-width: 170px;
width: 100%;
}
.spanTitleText {
/* font-size: .8rem; */
font-size: 11px;
width:100%;
}
.inputGroupText {
width: 100%;
...
...
@@ -38,10 +45,12 @@ var css = csjs`
color: var(--primary);
}
.titleExpander {
margin-right: 10px;
/* margin-right: 10px; */
padding: 5px 7px;
}
.nameNbuts {
flex-wrap: nowrap;
width: 100%;
}
.instance {
display: block;
...
...
src/universal-dapp-ui.js
View file @
3e71fbe2
...
...
@@ -68,10 +68,10 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
var
shortAddress
=
helper
.
shortenAddress
(
address
)
var
title
=
yo
`
<div class="
${
css
.
title
}
alert alert-
dark
">
<button class="btn
btn-light
${
css
.
titleExpander
}
" onclick="
${(
e
)
=>
{
toggleClass
(
e
)
}}
"><i class="
fa
fa
-
caret
-
right
" aria-hidden="
true
"></i></button>
<div class="
${
css
.
title
}
alert alert-
info
">
<button class="btn
${
css
.
titleExpander
}
" onclick="
${(
e
)
=>
{
toggleClass
(
e
)
}}
"><i class="
fa
fa
-
caret
-
right
" aria-hidden="
true
"></i></button>
<div class="
input
-
group
$
{
css
.
nameNbuts
}
">
<div class="
${
css
.
titleText
}
input-group-prepend"><span class="input-group-text">
${
contractName
}
at
${
shortAddress
}
(
${
context
}
)</span></div>
<div class="
${
css
.
titleText
}
input-group-prepend"><span class="input-group-text
${
css
.
spanTitleText
}
">
${
contractName
}
at
${
shortAddress
}
(
${
context
}
)</span></div>
<div class="btn-group">
<button class="btn btn-secondary">
${
copyToClipboard
(()
=>
address
)}
</button>
</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