[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,25 +82,23 @@
<div>
{#if !$error}
<section class="exact">
{#if exactHits.length}
<ul>
{#each exactHits as address}
<li>
<UpObjectCard {address} --width="100%" --height="100%" />
</li>
{/each}
</ul>
{:else}
<div class="create">
<div>Create new object?</div>
<button class="create-object" on:click={create}>"{query}"</button>
</div>
{/if}
</section>
{#if $result}
<section class="exact">
<h2>Exact</h2>
{#if exactHits.length}
<ul>
{#each exactHits as address}
<li>
<UpObjectCard {address} --width="100%" --height="100%" />
</li>
{/each}
</ul>
{:else}
<div class="create">
<p>Create new object?</p>
<button class="create-object" on:click={create}>"{query}"</button>
</div>
{/if}
</section>
<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;
}
}