1
0
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:
Alex Andreev 2021-01-14 11:01:00 +03:00
parent dde23c75ab
commit 0d2f8a3503
2 changed files with 5 additions and 6 deletions

View File

@ -5,5 +5,9 @@
.find-count {
margin-left: 2px;
}
label {
padding-bottom: 7px;
}
}
}

View File

@ -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>
);
});