diff --git a/package.json b/package.json index 26fd8081..f70794f3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "md-editor-v3": "^2.8.1", "numeral": "^2.0.6", "osmojs": "^14.0.0-rc.0", - "ping-widget": "^0.0.28", + "ping-widget": "^0.0.29", "pinia": "^2.0.28", "postcss": "^8.4.23", "qrcode": "^1.5.3", diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index c9a18a9e..c2ac75fc 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -3,7 +3,7 @@ import { useBlockchain, useFormatter, useStakingStore, - useTxDialog + useTxDialog, } from '@/stores'; import { select } from '@/components/dynamic/index'; import type { PaginatedProposals } from '@/types'; @@ -45,55 +45,94 @@ const proposalInfo = ref(); - +
- + {{ item?.content?.title }}
+ class="bg-[#f6f2ff] text-[#9c6cff] dark:bg-gray-600 dark:text-gray-300 inline-block rounded-full px-2 py-[1px] text-xs mb-1" + > {{ showType(item.content['@type']) }}
- +
-
-
+
+
- {{ statusMap?.[item?.status] || item?.status }} + {{ + statusMap?.[item?.status] || + item?.status + }}
+ class="truncate col-span-2 md:!col-span-1 text-xs text-gray-500 dark:text-gray-400 text-right md:!flex md:!justify-start" + > {{ format.toDay(item.voting_end_time, 'from') }}
- +
-
@@ -103,56 +142,99 @@ const proposalInfo = ref();
-
-
- {{ - item?.content?.title }} - +
+
+ {{ item?.content?.title }} +
+ class="bg-[#f6f2ff] text-[#9c6cff] dark:bg-gray-600 dark:text-gray-300 inline-block rounded-full px-2 py-[1px] text-xs mb-1" + > {{ showType(item.content['@type']) }}
-
-
+
+
{{ statusMap?.[item?.status] || item?.status }}
-
+
{{ format.toDay(item.voting_end_time, 'from') }}
- +
- -
- + +
+ {{ item?.voterStatus }}
@@ -160,15 +242,30 @@ const proposalInfo = ref();
- +