Skip to content

Commit

Permalink
Explore tx 11 (MystenLabs#1852)
Browse files Browse the repository at this point in the history
* sender added to tx page

* fixed latest transactions column alignment issue

* fixed latest transactions column alignment bug

* lint
  • Loading branch information
Jibz1 authored May 7, 2022
1 parent 2a87c3e commit 3b8a9c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ div.txcardgrid h3 {
}

div.txcard {
@apply font-mono md:flex grid items-center bg-center shadow-sm pt-5 pb-5 h-auto border-solid border border-gray-100 pl-5 pr-5 bg-white mt-5 mb-5 text-left;
@apply font-mono md:flex grid items-center bg-center shadow-sm pt-5 pb-5 h-auto border-solid border border-gray-100 pl-5 pr-5 bg-white mt-5 mb-5 text-left md:justify-around;
}

div.txcardgridlarge {
Expand All @@ -19,7 +19,7 @@ div.txcardgrid > div {
}

div.txcardgrid > div:first-child {
@apply w-full md:w-1/3;
@apply w-full md:w-1/4 lg:w-1/3;
}

.txlatestesults {
Expand All @@ -29,7 +29,7 @@ div.txcardgrid > div:first-child {
}

div.txadd {
@apply flex md:flex-col flex-row;
@apply flex md:flex-col flex-row md:w-1/4 lg:w-1/3 w-auto;
}

.txheader {
Expand All @@ -44,6 +44,10 @@ div.txadd {
@apply md:w-1/12 max-w-sm;
}

.txstatus {
@apply md:w-1/12 max-w-sm;
}

.txsearch {
@apply w-full;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function LatestTxCard() {
>
<div className={styles.txcardgridlarge}>TxId</div>
<div className={styles.txtype}>TxType</div>
<div className={styles.txgas}>Status</div>
<div className={styles.txstatus}>Status</div>
<div className={styles.txgas}>Gas</div>
<div className={styles.txadd}>Addresses</div>
</div>
Expand All @@ -198,7 +198,7 @@ function LatestTxCard() {
<div
className={cl(
styles[tx.status.toLowerCase()],
styles.txgas
styles.txstatus
)}
>
{tx.status === 'Success' ? '✔' : '✖'}
Expand Down

0 comments on commit 3b8a9c2

Please sign in to comment.