From dc3b51e5f9f56cd0eed57e3e1afd89185c3df911 Mon Sep 17 00:00:00 2001 From: Kellar Date: Mon, 29 Apr 2024 16:15:40 +0100 Subject: [PATCH] Fix clipped input buttons --- .../ProposalBuilder/ProposalTransaction.tsx | 36 ++++++++++++++----- .../ProposalBuilder/ProposalTransactions.tsx | 16 ++++----- .../ProposalTransactionsForm.tsx | 4 +-- src/components/ProposalBuilder/index.tsx | 1 - 4 files changed, 37 insertions(+), 20 deletions(-) diff --git a/src/components/ProposalBuilder/ProposalTransaction.tsx b/src/components/ProposalBuilder/ProposalTransaction.tsx index 3498ffc450..4cad51e231 100644 --- a/src/components/ProposalBuilder/ProposalTransaction.tsx +++ b/src/components/ProposalBuilder/ProposalTransaction.tsx @@ -65,9 +65,10 @@ export default function ProposalTransaction({ return ( + {/* TRANSACTION TARGET ADDRESS */} )} + + + {/* FUNCTION SPECIFICATION */} - + + {/* TRANSACTION PARAMETERS LIST */} + {({ isExpanded }) => ( <> - + {/* TRANSACTION PARAMETER HEADER */} + { setExpandedIndecies(indexArray => { @@ -169,6 +181,8 @@ export default function ProposalTransaction({ + + {/* Remove parameter button */} {i !== 0 || transaction.parameters.length !== 1 ? ( } @@ -193,12 +207,11 @@ export default function ProposalTransaction({ )} + + {/* TRANSACTION PARAMETER SECTION */} - - + + + {!isExpanded && ( )} + + {/* ADD PARAMETER BUTTON */} {i === transaction.parameters.length - 1 && (