feat: proposal item
This commit is contained in:
parent
8be8ee5746
commit
4c5ba81494
@ -112,9 +112,9 @@ const statusMap: Record<string, string> = {
|
||||
>
|
||||
<RouterLink
|
||||
:to="`/${chain.chainName}/gov/${item?.proposal_id}`"
|
||||
class="text-main text-base mb-1 flex justify-between hover:text-indigo-400 truncate"
|
||||
class="text-main text-base mb-1 flex justify-between hover:text-indigo-400"
|
||||
>
|
||||
<div>{{ item?.content?.title }}</div>
|
||||
<div class="flex-1 w-0 truncate mr-4">{{ item?.content?.title }}</div>
|
||||
|
||||
<div>#{{ item?.proposal_id }}</div>
|
||||
</RouterLink>
|
||||
|
@ -30,30 +30,30 @@ const veto = computed(() =>
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="progress rounded-[3px] h-7 text-xs flex items-center">
|
||||
<div class="progress rounded-[3px] h-6 text-xs flex items-center">
|
||||
<div
|
||||
class="h-7 bg-yes flex items-center pl-2 text-white overflow-hidden"
|
||||
class="h-6 bg-yes flex items-center pl-2 text-white overflow-hidden"
|
||||
:style="`width: ${yes}`"
|
||||
:title="yes"
|
||||
>
|
||||
{{ yes }}
|
||||
</div>
|
||||
<div
|
||||
class="h-7 bg-no flex items-center text-white overflow-hidden"
|
||||
class="h-6 bg-no flex items-center text-white overflow-hidden"
|
||||
:style="`width: ${no}`"
|
||||
:title="no"
|
||||
>
|
||||
{{ no }}
|
||||
</div>
|
||||
<div
|
||||
class="h-7 bg-[#B71C1C] flex items-center text-white overflow-hidden"
|
||||
class="h-6 bg-[#B71C1C] flex items-center text-white overflow-hidden"
|
||||
:style="`width: ${veto};`"
|
||||
:title="veto"
|
||||
>
|
||||
{{ veto }}
|
||||
</div>
|
||||
<div
|
||||
class="h-7 bg-secondary flex items-center text-white overflow-hidden"
|
||||
class="h-6 bg-secondary flex items-center text-white overflow-hidden"
|
||||
:style="`width: ${abstain}`"
|
||||
:title="abstain"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user