Skip to content

Commit

Permalink
fix: Add wrap on queue tx button container (#3401)
Browse files Browse the repository at this point in the history
* fix: Add wrap on queue tx button container

* style: Remove unnecesary template strings
  • Loading branch information
daniel0ar authored Mar 7, 2024
1 parent 63e243e commit c60e93e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/transactions/TxDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const TxDetailsBlock = ({ txSummary, txDetails }: TxDetailsProps): ReactElement
</div>

{isMultiSendTxInfo(txDetails.txInfo) && (
<div className={`${css.multiSend}`}>
<div className={css.multiSend}>
<ErrorBoundary fallback={<div>Error parsing data</div>}>
<Multisend txData={txDetails.txData} />
</ErrorBoundary>
Expand All @@ -109,7 +109,7 @@ const TxDetailsBlock = ({ txSummary, txDetails }: TxDetailsProps): ReactElement
<TxSigners txDetails={txDetails} txSummary={txSummary} />

{isQueue && (
<Box display="flex" alignItems="center" justifyContent="center" gap={1} mt={2}>
<Box className={css.buttons}>
{awaitingExecution ? <ExecuteTxButton txSummary={txSummary} /> : <SignTxButton txSummary={txSummary} />}
<RejectTxButton txSummary={txSummary} />
</Box>
Expand Down
11 changes: 10 additions & 1 deletion src/components/transactions/TxDetails/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
border-top: 1px solid var(--color-border-light);
}

.buttons {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-1);
margin-top: var(--space-2);
}

@media (max-width: 599.95px) {
.container {
flex-direction: column;
Expand All @@ -70,4 +79,4 @@
border-left: 0;
border-top: 1px solid var(--color-border-light);
}
}
}

0 comments on commit c60e93e

Please sign in to comment.