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
705b0da5
Unverified
Commit
705b0da5
authored
Jun 23, 2020
by
yann300
Committed by
GitHub
Jun 23, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2904 from ethereum/terminalTitle
terminal title bar UI adjustments according to the last design
parents
5fee3e71
f9d9dcd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
36 deletions
+11
-36
terminal-styles.js
src/app/panels/styles/terminal-styles.js
+4
-30
terminal.js
src/app/panels/terminal.js
+7
-6
No files found.
src/app/panels/styles/terminal-styles.js
View file @
705b0da5
...
@@ -20,20 +20,7 @@ var css = csjs`
...
@@ -20,20 +20,7 @@ var css = csjs`
max-height : 35px;
max-height : 35px;
min-height : 35px;
min-height : 35px;
}
}
.clear {
margin-right : 20px;
width : 10px;
cursor : pointer;
display : flex;
}
.clear:hover {
color : var(--secondary);
}
.toggleTerminal {
.toggleTerminal {
margin-right : 20px;
margin-left : 2px;
font-size : 14px;
font-weight : bold;
cursor : pointer;
cursor : pointer;
}
}
.toggleTerminal:hover {
.toggleTerminal:hover {
...
@@ -95,9 +82,7 @@ var css = csjs`
...
@@ -95,9 +82,7 @@ var css = csjs`
padding-bottom : 1px;
padding-bottom : 1px;
}
}
.filter {
.filter {
padding-right : 0px;
height : 80%;
margin-right : 0px;
height : 100%;
white-space : nowrap;
white-space : nowrap;
overflow : hidden;
overflow : hidden;
text-overflow : ellipsis;
text-overflow : ellipsis;
...
@@ -126,20 +111,6 @@ var css = csjs`
...
@@ -126,20 +111,6 @@ var css = csjs`
border-left : 1px solid var(--secondary)
border-left : 1px solid var(--secondary)
height : 65%;
height : 65%;
}
}
.listenOnNetworkLabel {
white-space : nowrap;
}
.pendingTx {
border-radius : 50%;
margin-right : 30px;
min-width : 13px;
height : 13px;
display : flex;
justify-content : center;
align-items : center;
font-size : 14px;
user-select : none;
}
.dragbarHorizontal {
.dragbarHorizontal {
position : absolute;
position : absolute;
top : 0;
top : 0;
...
@@ -149,6 +120,9 @@ var css = csjs`
...
@@ -149,6 +120,9 @@ var css = csjs`
cursor : ns-resize;
cursor : ns-resize;
z-index : 999;
z-index : 999;
}
}
.listenOnNetwork {
min-height: auto;
}
.ghostbar {
.ghostbar {
position : absolute;
position : absolute;
height : 6px;
height : 6px;
...
...
src/app/panels/terminal.js
View file @
705b0da5
...
@@ -147,11 +147,11 @@ class Terminal extends Plugin {
...
@@ -147,11 +147,11 @@ class Terminal extends Plugin {
self
.
_view
.
icon
=
yo
`
self
.
_view
.
icon
=
yo
`
<i onmouseenter=
${
hover
}
onmouseleave=
${
hover
}
onmousedown=
${
minimize
}
<i onmouseenter=
${
hover
}
onmouseleave=
${
hover
}
onmousedown=
${
minimize
}
class="
btn btn-secondary btn-sm align-items-center
${
css
.
toggleTerminal
}
fas fa-angle-double-down" data-id="terminalToggleIcon"></i>`
class="
mx-2
${
css
.
toggleTerminal
}
fas fa-angle-double-down" data-id="terminalToggleIcon"></i>`
self
.
_view
.
dragbar
=
yo
`
self
.
_view
.
dragbar
=
yo
`
<div onmousedown=
${
mousedown
}
class=
${
css
.
dragbarHorizontal
}
></div>`
<div onmousedown=
${
mousedown
}
class=
${
css
.
dragbarHorizontal
}
></div>`
self
.
_view
.
pendingTxCount
=
yo
`<div class=
${
css
.
pendingTx
}
title='Pending Transactions'>0</div>`
self
.
_view
.
pendingTxCount
=
yo
`<div class=
"mx-2"
title='Pending Transactions'>0</div>`
self
.
_view
.
inputSearch
=
yo
`<input
self
.
_view
.
inputSearch
=
yo
`<input
spellcheck="false"
spellcheck="false"
type="text"
type="text"
...
@@ -166,21 +166,22 @@ class Terminal extends Plugin {
...
@@ -166,21 +166,22 @@ class Terminal extends Plugin {
${
self
.
_view
.
dragbar
}
${
self
.
_view
.
dragbar
}
<div class="
${
css
.
menu
}
border-top border-dark bg-light" data-id="terminalToggleMenu">
<div class="
${
css
.
menu
}
border-top border-dark bg-light" data-id="terminalToggleMenu">
${
self
.
_view
.
icon
}
${
self
.
_view
.
icon
}
<div class=
${
css
.
clear
}
id="clearConsole" data-id="terminalClearConsole" onclick=
${
clear
}
>
<div class=
"mx-2"
id="clearConsole" data-id="terminalClearConsole" onclick=
${
clear
}
>
<i class="fas fa-ban" aria-hidden="true" title="Clear console"
<i class="fas fa-ban" aria-hidden="true" title="Clear console"
onmouseenter=
${
hover
}
onmouseleave=
${
hover
}
></i>
onmouseenter=
${
hover
}
onmouseleave=
${
hover
}
></i>
</div>
</div>
${
self
.
_view
.
pendingTxCount
}
${
self
.
_view
.
pendingTxCount
}
<div class=
${
css
.
verticalLine
}
></div>
<div class=
${
css
.
verticalLine
}
></div>
<div class="
form-check
">
<div class="
mx-2 d-flex pb-1 align-items-center
${
css
.
listenOnNetwork
}
custom-control custom-checkbox
">
<input
<input
class="pb-0 form-check-input custom-control-input"
id="listenNetworkCheck"
id="listenNetworkCheck"
onchange=
${
listenOnNetwork
}
onchange=
${
listenOnNetwork
}
type="checkbox"
class="form-check-input "
type="checkbox"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
>
>
<label
<label
class="
${
css
.
listenOnNetworkLabel
}
form-check-label
"
class="
pt-1 form-check-label custom-control-label text-nowrap"
"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
for="listenNetworkCheck"
for="listenNetworkCheck"
>
>
...
...
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