Skip to content

Commit

Permalink
Improves graph search UX
Browse files Browse the repository at this point in the history
  • Loading branch information
nzaytsev committed Dec 27, 2024
1 parent 21cbf8a commit 2a46194
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webviews/apps/shared/components/search/search-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class GlSearchBox extends GlElement {
resultsLoaded = false;

get hasResults() {
return this.total > 1;
return this.total >= 1;
}

@query('gl-search-input')
Expand Down Expand Up @@ -221,6 +221,9 @@ export class GlSearchBox extends GlElement {
}

private get resultsHtml() {
if (!this.value) {
return html`<span class="count"></span>`;
}
if (this.searching) {
return html`<gl-tooltip hoist placement="top" class="count"
><code-icon icon="loading" modifier="spin"></code-icon><span slot="content">Searching...</span>
Expand Down

0 comments on commit 2a46194

Please sign in to comment.