#96 - Fixed layout
This commit is contained in:
@@ -36,15 +36,13 @@
|
|||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
.omnisearch-input-container {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.omnisearch-input-field {
|
.omnisearch-input-field {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.omnisearch-input__context {
|
|
||||||
position: absolute;
|
|
||||||
right: 1em;
|
|
||||||
top: calc(50% - 0.75em);
|
|
||||||
color: var(--text-faint);
|
|
||||||
font-size: small;
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
import { createEventDispatcher, onMount, tick } from 'svelte'
|
import { createEventDispatcher, onMount, tick } from 'svelte'
|
||||||
|
|
||||||
export let value = ''
|
export let value = ''
|
||||||
export let label = ''
|
export let placeholder = ''
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
let elInput: HTMLInputElement
|
let elInput: HTMLInputElement
|
||||||
@@ -33,12 +33,8 @@
|
|||||||
on:compositionend="{_ => toggleInputComposition(false)}"
|
on:compositionend="{_ => toggleInputComposition(false)}"
|
||||||
type="text"
|
type="text"
|
||||||
class="prompt-input"
|
class="prompt-input"
|
||||||
placeholder="Type to search through your notes"
|
{placeholder}
|
||||||
spellcheck="false" />
|
spellcheck="false" />
|
||||||
|
|
||||||
<span class="omnisearch-input__context">
|
|
||||||
{label}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
<InputSearch
|
<InputSearch
|
||||||
value={searchQuery}
|
value={searchQuery}
|
||||||
on:input={e => (searchQuery = e.detail)}
|
on:input={e => (searchQuery = e.detail)}
|
||||||
label="Omnisearch - File" />
|
placeholder="Omnisearch - File" />
|
||||||
|
|
||||||
<ModalContainer>
|
<ModalContainer>
|
||||||
{#if groupedOffsets.length && note}
|
{#if groupedOffsets.length && note}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@
|
|||||||
<InputSearch
|
<InputSearch
|
||||||
value="{searchQuery}"
|
value="{searchQuery}"
|
||||||
on:input="{e => (searchQuery = e.detail)}"
|
on:input="{e => (searchQuery = e.detail)}"
|
||||||
label="Omnisearch - Vault">
|
placeholder="Omnisearch - Vault">
|
||||||
{#if $settings.showCreateButton}
|
{#if $settings.showCreateButton}
|
||||||
<button on:click="{createNoteAndCloseModal}">Create note</button>
|
<button on:click="{createNoteAndCloseModal}">Create note</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user