search input style on terminal

pull/1/head
LianaHus 6 years ago
parent 15a8649821
commit d8d287d5e8
  1. 8
      src/app/panels/styles/terminal-styles.js
  2. 25
      src/app/panels/terminal.js

@ -90,17 +90,17 @@ var css = csjs`
.search {
display : flex;
align-items : center;
width : 200px;
width : 330px;
padding-left : 20px;
height : 100%;
}
.filter {
width : 200px;
padding-right : 0px;
margin-right : 0px;
border-top-left-radius : 0px;
border-bottom-left-radius : 0px;
height : 100%;
white-space : nowrap;
overflow : hidden;
text-overflow : ellipsis;
}
.searchIcon {
height : 100%;

@ -125,7 +125,14 @@ class Terminal extends BaseApi {
<div onmousedown=${mousedown} class=${css.dragbarHorizontal}></div>`
self._view.pendingTxCount = yo`<div class=${css.pendingTx} title='Pending Transactions'>0</div>`
self._view.inputSearch = yo`<input spellcheck="false" type="text" class="${css.filter} form-control" id="input" onkeydown=${filter} placeholder="Search transactions"></input>`
self._view.inputSearch = yo`<input
spellcheck="false"
type="text"
class="${css.filter} form-control"
id="input"
onkeydown=${filter}
placeholder="Search with transaction hash or address">
</input>`
self._view.bar = yo`
<div class="${css.bar}">
${self._view.dragbar}
@ -138,9 +145,19 @@ class Terminal extends BaseApi {
${self._view.pendingTxCount}
<div class=${css.verticalLine}></div>
<div class="form-check">
<input id="listenNetworkCheck" onchange=${listenOnNetwork} type="checkbox" class="form-check-input "
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you">
<label class="form-check-label" title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you" for="listenNetworkCheck">listen on network</label>
<input
id="listenNetworkCheck"
onchange=${listenOnNetwork}
type="checkbox" class="form-check-input "
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
>
<label
class="form-check-label"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
for="listenNetworkCheck"
>
listen on network
</label>
</div>
<div class=${css.search}>
<i class="fa fa-search ${css.searchIcon} bg-light" aria-hidden="true"></i>

Loading…
Cancel
Save