Skip to content

Commit

Permalink
Fix UI bugs in search bar (#3854)
Browse files Browse the repository at this point in the history
* [UI] don't display searchbar autocomplete when its empty

* [UI] set cursor to pointer on clearSearchButton hover
  • Loading branch information
TabulateJarl8 authored Jul 11, 2024
1 parent dfa48dc commit 00ce6fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/frontend/components/UI/SearchBar/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
display: block;
}

ul.autoComplete:empty {
display: none;
}

.searchButton {
padding: var(--space-2xs) var(--space-2xs) 0 var(--space-2xs);
}
Expand All @@ -57,6 +61,10 @@
background: transparent;
border: none;
color: var(--text-secondary);

svg {
cursor: pointer;
}
}

.searchBarInput {
Expand Down

0 comments on commit 00ce6fd

Please sign in to comment.