[ui] Search page improvements

feat/vaults
Tomáš Mládek 2022-01-17 16:59:12 +01:00
parent e0444528d7
commit ba3aa330bd
1 changed files with 19 additions and 18 deletions

View File

@ -82,9 +82,7 @@
<div> <div>
{#if !$error} {#if !$error}
{#if $result}
<section class="exact"> <section class="exact">
<h2>Exact</h2>
{#if exactHits.length} {#if exactHits.length}
<ul> <ul>
{#each exactHits as address} {#each exactHits as address}
@ -95,12 +93,12 @@
</ul> </ul>
{:else} {:else}
<div class="create"> <div class="create">
<p>Create new object?</p> <div>Create new object?</div>
<button class="create-object" on:click={create}>"{query}"</button> <button class="create-object" on:click={create}>"{query}"</button>
</div> </div>
{/if} {/if}
</section> </section>
{#if $result}
<section class="objects"> <section class="objects">
{#await objects} {#await objects}
<h2>Objects</h2> <h2>Objects</h2>
@ -159,6 +157,8 @@
} }
.exact { .exact {
margin-top: 1rem;
ul { ul {
display: flex; display: flex;
gap: 1rem; gap: 1rem;
@ -186,6 +186,7 @@
padding: 0.2em; padding: 0.2em;
font-size: 1.25em; font-size: 1.25em;
cursor: pointer; cursor: pointer;
margin-top: 1rem;
} }
} }