[ui] Search page improvements
This commit is contained in:
parent
e0444528d7
commit
ba3aa330bd
1 changed files with 19 additions and 18 deletions
|
@ -82,9 +82,7 @@
|
|||
|
||||
<div>
|
||||
{#if !$error}
|
||||
{#if $result}
|
||||
<section class="exact">
|
||||
<h2>Exact</h2>
|
||||
{#if exactHits.length}
|
||||
<ul>
|
||||
{#each exactHits as address}
|
||||
|
@ -95,12 +93,12 @@
|
|||
</ul>
|
||||
{:else}
|
||||
<div class="create">
|
||||
<p>Create new object?</p>
|
||||
<div>Create new object?</div>
|
||||
<button class="create-object" on:click={create}>"{query}"</button>
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
|
||||
{#if $result}
|
||||
<section class="objects">
|
||||
{#await objects}
|
||||
<h2>Objects</h2>
|
||||
|
@ -159,6 +157,8 @@
|
|||
}
|
||||
|
||||
.exact {
|
||||
margin-top: 1rem;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
|
@ -186,6 +186,7 @@
|
|||
padding: 0.2em;
|
||||
font-size: 1.25em;
|
||||
cursor: pointer;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue