feat: governance detail card rewrite

This commit is contained in:
Alisa | Side.one 2023-05-05 16:50:57 +08:00
parent af4eafc3b1
commit 52c6b20aca
3 changed files with 12 additions and 36 deletions

View File

@ -1,33 +0,0 @@
<template>
<div class="h-100 d-flex align-center justify-space-between">
<!-- 👉 Footer: left content -->
<span class="d-flex align-center">
&copy;
{{ new Date().getFullYear() }}
Made With
<VIcon
icon="mdi-heart-outline"
color="error"
size="1.25rem"
class="mx-1"
/>
By <a
href="https://ping.pub"
target="_blank"
rel="noopener noreferrer"
class="text-primary ms-1"
>Ping.pub</a>
</span>
<!-- 👉 Footer: right content -->
<span class="d-md-flex gap-x-4 text-primary d-none">
<a
href="https://github.com/ping-pub/explorer/blob/master/LICENSE"
target="noopener noreferrer"
>License</a>
<a
href="https://github.com/ping-pub/explorer"
target="noopener noreferrer"
>Github</a>
</span>
</div>
</template>

View File

@ -20,6 +20,5 @@ const themes: ThemeSwitcherTheme[] = [
<template> <template>
<div> <div>
<NewThemeSwitcher :themes="themes"/> <NewThemeSwitcher :themes="themes"/>
<!-- <ThemeSwitcher :themes="themes" /> -->
</div> </div>
</template> </template>

View File

@ -140,7 +140,17 @@ const abstain = computed(()=> {
<template> <template>
<div> <div>
<VCard> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4">
<h2 class="card-title flex flex-col md:justify-between md:flex-row">
<p class="truncate w-full">{{ proposal_id }}. {{ proposal.content?.title }} </p>
<VChip label :color="color" class="justify-self-end">{{ status }}</VChip>
</h2>
<div class="">
<ObjectElement :value="proposal.content"/>
</div>
</div>
<!-- <VCard>
<VCardItem> <VCardItem>
<VCardTitle> <VCardTitle>
{{ proposal_id }}. {{ proposal.content?.title }} <VChip label :color="color" class="float-right">{{ status }}</VChip> {{ proposal_id }}. {{ proposal.content?.title }} <VChip label :color="color" class="float-right">{{ status }}</VChip>
@ -148,7 +158,7 @@ const abstain = computed(()=> {
<ObjectElement :value="proposal.content"/> <ObjectElement :value="proposal.content"/>
</VCardItem> </VCardItem>
</VCard> </VCard>
-->
<VRow class="my-5"> <VRow class="my-5">
<VCol cols=12 md="4"> <VCol cols=12 md="4">
<VCard class="h-100"> <VCard class="h-100">