reduced terminal dragable border width and resolved search error

pull/1342/head
davidzagi93@gmail.com 3 years ago
parent 2d833038a4
commit e3c1cd94c4
  1. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
  2. 4
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -141,7 +141,7 @@ element.style {
.dragbarHorizontal {
position : absolute;
top : 0;
height : 0.5em;
height : 0.2em;
right : 0;
left : 0;
cursor : row-resize;

@ -797,7 +797,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
{/* ${self._view.inputSearch} */}
<input
// spellcheck = "false"
onChange={(event) => setSearchInput(event.target.value) }
onChange={(event) => setSearchInput(event.target.value.trim()) }
type="text"
className="border filter form-control"
id="searchInput"
@ -830,7 +830,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
</div>
)
} else if (x.name === 'unknownTransaction' || x.name === 'knownTransaction') {
return x.message.filter(x => x.tx.hash.includes(searchInput) || x.tx.from.includes(searchInput) || x.tx.to.includes(searchInput)).map((trans) => {
return x.message.filter(x => x.tx.hash.includes(searchInput) || x.tx.from.includes(searchInput) || (x.tx.to.includes(searchInput))).map((trans) => {
return (<div className='px-4 block' data-id={`block_tx${trans.tx.hash}`}> {renderKnownTransactions(trans.tx, trans.receipt, index)} </div>)
})
} else {

Loading…
Cancel
Save