forked from cerc-io/cosmos-explorer
feat: button style refactor
This commit is contained in:
parent
f0189342ec
commit
b57db735ed
@ -38,8 +38,8 @@ const format = useFormatter();
|
|||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody v-if="store.recents && store.recents.length > 0" >
|
||||||
<tr v-for="(item,index) of store.recents" :key="index">
|
<tr v-for="(item, index) in store.recents" :key="index">
|
||||||
<td class="text-sm text-primary">
|
<td class="text-sm text-primary">
|
||||||
<RouterLink
|
<RouterLink
|
||||||
:to="`/${props.chain}/block/${item.block?.header?.height}`"
|
:to="`/${props.chain}/block/${item.block?.header?.height}`"
|
||||||
@ -69,8 +69,8 @@ const format = useFormatter();
|
|||||||
<th>Fees</th>
|
<th>Fees</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody v-if="store.txsInRecents && store.txsInRecents.length > 0" >
|
||||||
<tr v-for="(item,index) of store.txsInRecents" :key="index">
|
<tr v-for="(item,index) in store.txsInRecents" :index="index">
|
||||||
<td>
|
<td>
|
||||||
<RouterLink :to="`/${props.chain}/tx/${item.hash}`">{{
|
<RouterLink :to="`/${props.chain}/tx/${item.hash}`">{{
|
||||||
item.hash
|
item.hash
|
||||||
|
@ -139,6 +139,7 @@ const result = ref('');
|
|||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<v-dialog v-model="stateDialog" width="auto">
|
<v-dialog v-model="stateDialog" width="auto">
|
||||||
<v-card>
|
<v-card>
|
||||||
<VCardTitle>Contract States</VCardTitle>
|
<VCardTitle>Contract States</VCardTitle>
|
||||||
@ -159,6 +160,7 @@ const result = ref('');
|
|||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<v-dialog v-model="queryDialog" width="auto">
|
<v-dialog v-model="queryDialog" width="auto">
|
||||||
<v-card>
|
<v-card>
|
||||||
<VCardTitle>Query Contract</VCardTitle>
|
<VCardTitle>Query Contract</VCardTitle>
|
||||||
|
@ -300,7 +300,13 @@ const processList = computed(()=>{
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<VBtn v-if="votePage.next_key" block variant="outlined" @click="loadMore()" :disabled="loading">Load more</VBtn>
|
<button
|
||||||
|
v-if="votePage.next_key"
|
||||||
|
@click="loadMore()"
|
||||||
|
:disabled="loading"
|
||||||
|
class="btn btn-outline btn-primary w-full"
|
||||||
|
style="border: 1px solid hsl(var(--p));"
|
||||||
|
>Load more</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,7 +48,16 @@ function color(v: string) {
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ v.delay_period }}</td>
|
<td>{{ v.delay_period }}</td>
|
||||||
<td>
|
<td>
|
||||||
<VChip :color="color(v.state)">{{ v.state }}</VChip>
|
<div
|
||||||
|
class="text-xs truncate relative py-2 px-4 rounded-full w-fit"
|
||||||
|
:class="`text-${color(v.state)}`"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="inset-x-0 inset-y-0 opacity-10 absolute"
|
||||||
|
:class="`bg-${color(v.state)}`"
|
||||||
|
></span>
|
||||||
|
{{ v.state }}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user