mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Search Bar scales a bit
This commit is contained in:
parent
a5a6a3e475
commit
976ed8c97e
@ -12,6 +12,7 @@ const stakeColour = "rgba(71, 23, 122, 0.3)";
|
||||
const claimColour = "rgba(77, 91, 42, 0.3)";
|
||||
const unbondColour = "rgba(122, 23, 51, 0.3)";
|
||||
const greyColour = "rgba(122, 128, 127, 0.3)";
|
||||
const maxShown = 500;
|
||||
|
||||
const EventViewer = (obj) => {
|
||||
const [searchTerm, setSearchTerm] = useState(obj.prefill || "");
|
||||
@ -43,13 +44,20 @@ const EventViewer = (obj) => {
|
||||
|
||||
return (
|
||||
<div className="stroke roundedOpaque" style={{ padding: 0, margin: 0, marginTop: '2em', position: 'absolute', bottom: 0, top: '300px', left: '0px', right: '0px', overflowY: 'auto', overflowX: 'hidden', width: '100%' }}>
|
||||
<div className="fixed-container" style={{ padding: 0, width: '300px' }}>
|
||||
<input className="searchField" style={{ width: '300px' }}
|
||||
value={searchTerm}
|
||||
onChange={(evt) => setSearchTerm(evt.target.value)}
|
||||
placeholder='Filter by Orchestrator address'
|
||||
type="text"
|
||||
/>
|
||||
<div className="row">
|
||||
<div className="row">
|
||||
<h4>Shows the latest {maxShown} entries of your search query</h4>
|
||||
</div>
|
||||
<div className="row">
|
||||
<input className="searchField" style={{ marginLeft: '2em', width: '100%' }}
|
||||
value={searchTerm}
|
||||
onChange={(evt) => setSearchTerm(evt.target.value)}
|
||||
placeholder='Filter by Orchestrator address'
|
||||
type="text"
|
||||
/>
|
||||
</div>
|
||||
<div className="row">
|
||||
</div>
|
||||
</div>
|
||||
<div className="content-wrapper" style={{ alignItems: 'stretch', width: '100%' }}>
|
||||
<ScrollContainer className="overflow-container" hideScrollbars={false}>
|
||||
@ -119,7 +127,7 @@ const EventViewer = (obj) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (unfiltered < 500) {
|
||||
if (unfiltered < maxShown) {
|
||||
unfiltered++;
|
||||
return <EventButton
|
||||
key={eventObj.transactionHash + idx}
|
||||
|
Loading…
x
Reference in New Issue
Block a user