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 <RouterLink
:to="`/${chain.chainName}/gov/${item?.proposal_id}`" :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> <div>#{{ item?.proposal_id }}</div>
</RouterLink> </RouterLink>

View File

@ -30,30 +30,30 @@ const veto = computed(() =>
</script> </script>
<template> <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 <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}`" :style="`width: ${yes}`"
:title="yes" :title="yes"
> >
{{ yes }} {{ yes }}
</div> </div>
<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}`" :style="`width: ${no}`"
:title="no" :title="no"
> >
{{ no }} {{ no }}
</div> </div>
<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};`" :style="`width: ${veto};`"
:title="veto" :title="veto"
> >
{{ veto }} {{ veto }}
</div> </div>
<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}`" :style="`width: ${abstain}`"
:title="abstain" :title="abstain"
> >