mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Using generic search input clear button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
dde23c75ab
commit
0d2f8a3503
@ -5,5 +5,9 @@
|
|||||||
.find-count {
|
.find-count {
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
padding-bottom: 7px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ export const LogSearch = observer((props: Props) => {
|
|||||||
<SearchInput
|
<SearchInput
|
||||||
value={searchQuery}
|
value={searchQuery}
|
||||||
onChange={setSearch}
|
onChange={setSearch}
|
||||||
showClearIcon={false}
|
showClearIcon={true}
|
||||||
contentRight={totalFinds > 0 && findCounts}
|
contentRight={totalFinds > 0 && findCounts}
|
||||||
onClear={onClear}
|
onClear={onClear}
|
||||||
onKeyDown={onKeyDown}
|
onKeyDown={onKeyDown}
|
||||||
@ -78,11 +78,6 @@ export const LogSearch = observer((props: Props) => {
|
|||||||
onClick={onNextOverlay}
|
onClick={onNextOverlay}
|
||||||
disabled={jumpDisabled}
|
disabled={jumpDisabled}
|
||||||
/>
|
/>
|
||||||
<Icon
|
|
||||||
material="close"
|
|
||||||
tooltip={`Clear`}
|
|
||||||
onClick={onClear}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user