diff --git a/src/components/ModalInFile.svelte b/src/components/ModalInFile.svelte index b63d854..298023a 100644 --- a/src/components/ModalInFile.svelte +++ b/src/components/ModalInFile.svelte @@ -141,23 +141,28 @@ - (searchQuery = e.detail)} /> + - - {#if groupedOffsets.length && note} - {#each groupedOffsets as offset, i} - (selectedIndex = i)} - on:click={openSelection} /> - {/each} - {:else} -
We found 0 result for your search here.
- {/if} -
↑↓to navigate diff --git a/src/components/ModalVault.svelte b/src/components/ModalVault.svelte index c0cab8a..285ebff 100644 --- a/src/components/ModalVault.svelte +++ b/src/components/ModalVault.svelte @@ -181,20 +181,22 @@ - (searchQuery = e.detail)} /> +
diff --git a/src/modals.ts b/src/modals.ts index 91ee5e7..3c70032 100644 --- a/src/modals.ts +++ b/src/modals.ts @@ -9,13 +9,13 @@ abstract class OmnisearchModal extends Modal { constructor(app: App) { super(app) - // Remove all the default modal's children (except the close button) + // Remove all the default modal's children // so that we can more easily customize it const closeEl = this.containerEl.find('.modal-close-button') this.modalEl.replaceChildren() this.modalEl.append(closeEl) this.modalEl.addClass('omnisearch-modal', 'prompt') - this.modalEl.removeClass('modal') + // this.modalEl.removeClass('modal') this.modalEl.tabIndex = -1 // Setup events that can be listened through the event bus