Commit 971336df authored by davidzagi93@gmail.com's avatar davidzagi93@gmail.com

reduced terminal dragable border width and resolved search error

parent f4159099
...@@ -141,7 +141,7 @@ element.style { ...@@ -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) => { ...@@ -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) => { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment