[ui] selector types

feat/vaults
Tomáš Mládek 2022-02-02 17:58:30 +01:00
parent f20928ddfe
commit d5337bd784
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 21 additions and 1 deletions

View File

@ -65,6 +65,15 @@
options = [];
if (type === "value") {
const number = parseFloat(query);
if (!Number.isNaN(number)) {
options.push({
value: {
t: "Number",
c: number,
},
});
}
options.push({
value: {
t: "String",
@ -142,7 +151,8 @@
{#if option.value.t == "Address"}
<UpObject address={String(option.value.c)} />
{:else}
{option.value.c}
<div class="type">{option.value.t}</div>
<div class="content">{option.value.c}</div>
{/if}
{/if}
</li>
@ -196,6 +206,16 @@
&:hover {
background-color: var(--background-lighter);
}
.type,
.content {
display: inline-block;
}
.type {
opacity: 0.8;
font-size: smaller;
}
}
}
</style>