feat: proposal item

This commit is contained in:
Alisa | Side.one 2023-05-15 23:44:24 +08:00
parent 8be8ee5746
commit 4c5ba81494
2 changed files with 7 additions and 7 deletions

View File

@ -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>

View File

@ -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"
>