#96 - Fixed layout

This commit is contained in:
Simon Cambier
2022-09-23 08:40:24 +02:00
parent 0ca998741a
commit 0da61668b0
4 changed files with 10 additions and 16 deletions

View File

@@ -4,7 +4,7 @@
import { createEventDispatcher, onMount, tick } from 'svelte'
export let value = ''
export let label = ''
export let placeholder = ''
const dispatch = createEventDispatcher()
let elInput: HTMLInputElement
@@ -33,12 +33,8 @@
on:compositionend="{_ => toggleInputComposition(false)}"
type="text"
class="prompt-input"
placeholder="Type to search through your notes"
{placeholder}
spellcheck="false" />
<span class="omnisearch-input__context">
{label}
</span>
</div>
<slot></slot>
</div>

View File

@@ -143,7 +143,7 @@
<InputSearch
value={searchQuery}
on:input={e => (searchQuery = e.detail)}
label="Omnisearch - File" />
placeholder="Omnisearch - File" />
<ModalContainer>
{#if groupedOffsets.length && note}

View File

@@ -171,7 +171,7 @@
<InputSearch
value="{searchQuery}"
on:input="{e => (searchQuery = e.detail)}"
label="Omnisearch - Vault">
placeholder="Omnisearch - Vault">
{#if $settings.showCreateButton}
<button on:click="{createNoteAndCloseModal}">Create note</button>
{/if}