reduced terminal dragable border width and resolved search error

pull/5370/head
davidzagi93@gmail.com 3 years ago
parent c6667ae2a5
commit 284535a138
  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 { .dragbarHorizontal {
position : absolute; position : absolute;
top : 0; top : 0;
height : 0.5em; height : 0.2em;
right : 0; right : 0;
left : 0; left : 0;
cursor : row-resize; cursor : row-resize;

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

Loading…
Cancel
Save