Skip to content

Commit

Permalink
Merge pull request #699 from PayButton/fix/no-spacing-between-address…
Browse files Browse the repository at this point in the history
…es-txs

[#698] fix: space between addresses txs
  • Loading branch information
Klakurka committed Oct 4, 2023
2 parents 699efdc + 830ecfa commit 4d2f370
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Transaction/AddressTransactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default ({ addressTransactions, addressSynced }: IProps): FunctionCompone
return (
<>
{Object.keys(addressTransactions).map(transactionAddress => (
<div key={transactionAddress}>
<div key={transactionAddress} className='address-transactions-ctn'>
<div className={style.tablelabel}>{transactionAddress}</div>
{ addressTransactions[transactionAddress].length === 0
? <div className={style.transaction_ctn}> {
Expand All @@ -87,7 +87,7 @@ export default ({ addressTransactions, addressSynced }: IProps): FunctionCompone
</div>
: <TableContainer columns={columns} data={addressTransactions[transactionAddress]} />
}
</div>
</div>

))}
</>
Expand Down
3 changes: 1 addition & 2 deletions components/Transaction/transaction.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@

.tablelabel {
background-color: var(--secondary-bg-color);
border-radius: 10px;
border-radius: 10px 10px 0 0;
padding: 20px;
margin-bottom: -5px;
}

/*********************** COPY BUTTON **************************/
Expand Down
6 changes: 6 additions & 0 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ button:enabled:hover {
margin-top: 15px;
}

.address-transactions-ctn .paybutton-table-ctn {
border-radius: 0 0 10px 10px;
margin-top: 2px;
margin-bottom: 20px;
}

.paybutton-table-ctn table {
width: 100%;
display: table;
Expand Down

0 comments on commit 4d2f370

Please sign in to comment.