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 {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
label {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -61,7 +61,7 @@ export const LogSearch = observer((props: Props) => {
|
||||
<SearchInput
|
||||
value={searchQuery}
|
||||
onChange={setSearch}
|
||||
showClearIcon={false}
|
||||
showClearIcon={true}
|
||||
contentRight={totalFinds > 0 && findCounts}
|
||||
onClear={onClear}
|
||||
onKeyDown={onKeyDown}
|
||||
@ -78,11 +78,6 @@ export const LogSearch = observer((props: Props) => {
|
||||
onClick={onNextOverlay}
|
||||
disabled={jumpDisabled}
|
||||
/>
|
||||
<Icon
|
||||
material="close"
|
||||
tooltip={`Clear`}
|
||||
onClick={onClear}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user