Skip to content

Commit

Permalink
fix: style token-transfer mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Nam Dao committed Oct 19, 2022
1 parent 68875b3 commit dcbf120
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const AddressTokenTransfer = ({ data }: Props) => {
style.borderWidthPadding
)}
>
<div style={{ textAlign: 'left' }} className="col-5">
<div style={{ textAlign: 'left' }} className={clsx('col-7', style.colAddress)}>
<Row>
<LinkText classes={style.address} fontType="Titi" href={LinkMaker.transaction(data.hash)}>
{ellipseBetweenText(data.hash, 20, 20)}
Expand All @@ -44,12 +44,12 @@ const AddressTokenTransfer = ({ data }: Props) => {
</span>
</div>
</div>
<div className="col-2 ">
<div className={clsx('col-2', style.colBlock)}>
<LinkText classes="margin-left-lg" href={LinkMaker.block(data.blockNumber)}>
#{data.blockNumber}
</LinkText>
</div>
<div className="col-2 margin-left-xs">
<div className={clsx('col-2 margin-left-xs', style.colFee)}>
{/* <TypographyUI.Balance
size="sm"
currency=""
Expand All @@ -63,10 +63,10 @@ const AddressTokenTransfer = ({ data }: Props) => {
{numeral(parseInt(data.gasUsed) / 10 ** 9).format('0,0.000000000')} ASA
</span>
</div>
<div className="col-2 margin-left-xs">
<div className={clsx('col-1 margin-left-xs', style.colTimer)}>
<Timer updatedAt={parseInt(data.timeStamp) * 1000} />
</div>
<div className="col-2 margin-left-xs">
<div className={clsx('col-1 margin-left-xs', style.colStatus)}>
<Typography.SuccessText>Success</Typography.SuccessText>
</div>
</GradientRow>
Expand Down
16 changes: 16 additions & 0 deletions views/accounts/tabs/AddressTokenTransferTab/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@
.address {
width: 380px;
}

.colAddress {
min-width: 600px;
}
.colBlock {
min-width: 120px;
}
.colFee {
min-width: 120px;
}
.colTimer {
min-width: 80px;
}
.colStatus {
min-width: 80px;
}

0 comments on commit dcbf120

Please sign in to comment.