Merge pull request #428 from alisaweb3/v3-single

Btn style, Add route
This commit is contained in:
ping 2023-06-08 07:25:27 +08:00 committed by GitHub
commit e2782c1e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@ onBeforeRouteUpdate(async (to, from, next) => {
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title flex flex-row justify-between">
<p class="">#{{ current.block?.header?.height }}</p>
<div class="" v-if="props.height">
<div class="flex" v-if="props.height">
<RouterLink
:to="`/${store.blockchain.chainName}/block/${height - 1}`"
class="btn btn-primary btn-sm p-1 text-2xl mr-2"
@ -42,7 +42,7 @@ onBeforeRouteUpdate(async (to, from, next) => {
:to="`/${store.blockchain.chainName}/block/${height + 1}`"
class="btn btn-primary btn-sm p-1 text-2xl"
>
<Icon icon="mdi-arrow-right" />
<Icon icon="mdi-arrow-right" class="w-full h-full" />
</RouterLink>
</div>
</h2>

View File

@ -272,21 +272,21 @@ async function update() {
<!-- -->
<div class="flex flex-col md:!flex-row">
<div class="flex mr-1 mb-1">
<button class="btn btn-xs btn-primary px-4 w-[34px]"></button>
<button class="btn btn-xs !btn-primary px-4 w-[34px]"></button>
<span class="mx-1">Proposer Signed</span>
</div>
<div class="flex mr-1 mb-1">
<button class="btn btn-xs btn-warning px-4 w-[34px]"></button>
<button class="btn btn-xs !btn-warning px-4 w-[34px]"></button>
<span class="mx-1">Proposer Not Signed</span>
</div>
<div class="flex mr-1 mb-1">
<button class="btn btn-xs btn-success px-4 w-[34px]"></button>
<button class="btn btn-xs !btn-success px-4 w-[34px]"></button>
<span class="mx-1">Signed</span>
</div>
<div class="flex mr-1 mb-1">
<button class="btn btn-xs btn-neutral px-4 w-[34px]"></button>
<button class="btn btn-xs !btn-neutral px-4 w-[34px]"></button>
<span class="mx-1">Not Signed</span>
</div>
</div>
@ -318,10 +318,10 @@ async function update() {
</div>
</template>
<!-- <route>
<route>
{
meta: {
i18n: 'consensus',
}
}
</route> -->
</route>