From 06b87f83f3c1daa74aeff77b8a5167e4220c518c Mon Sep 17 00:00:00 2001 From: Enrique Ortiz Date: Mon, 31 Aug 2020 12:25:09 -0400 Subject: [PATCH] Widen proposal title margin --- src/components/ProposalActions.js | 2 +- src/components/ProposalsView.js | 2 +- src/screens/ProposalDetail.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ProposalActions.js b/src/components/ProposalActions.js index 92f493a..3c85f24 100644 --- a/src/components/ProposalActions.js +++ b/src/components/ProposalActions.js @@ -129,7 +129,7 @@ function ProposalActions({ signalingProposal, ]) const isCancellable = useMemo( - () => hasCancelRole && mode !== 'executed' && mode !== 'active', + () => hasCancelRole && mode !== 'executed' && mode !== 'cancelled', [hasCancelRole, mode] ) const isSupportable = useMemo(() => accountBalance.gt('0'), [accountBalance]) diff --git a/src/components/ProposalsView.js b/src/components/ProposalsView.js index 647fa8d..cc7ea5f 100644 --- a/src/components/ProposalsView.js +++ b/src/components/ProposalsView.js @@ -183,7 +183,7 @@ function ProposalProperty({ title, children }) { css={` display: flex; flex-direction: column; - width: 200px; + width: 95%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/src/screens/ProposalDetail.js b/src/screens/ProposalDetail.js index 40d8fa9..102bb6a 100644 --- a/src/screens/ProposalDetail.js +++ b/src/screens/ProposalDetail.js @@ -102,7 +102,9 @@ function ProposalDetail({ return false } + console.log('cancelRole', creator, connectedAccount) if (addressesEqual(creator, connectedAccount)) { + console.log('aja') return true }